From 3739ab77207e0e54edb55a110a16a1eb925b84f4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 24 Jan 2022 16:48:24 +0100 Subject: Export into rendered images --- src/syntax/span.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/span.rs b/src/syntax/span.rs index 4d5b8819..ab2797f6 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -2,12 +2,10 @@ use std::cmp::Ordering; use std::fmt::{self, Debug, Formatter}; use std::ops::Range; -use serde::{Deserialize, Serialize}; - use crate::source::SourceId; /// A value with the span it corresponds to in the source code. -#[derive(Copy, Clone, Eq, PartialEq, Serialize, Deserialize)] +#[derive(Copy, Clone, Eq, PartialEq)] pub struct Spanned { /// The spanned value. pub v: T, @@ -48,7 +46,7 @@ impl Debug for Spanned { } /// Bounds of a slice of source code. -#[derive(Copy, Clone, Eq, PartialEq, Serialize, Deserialize)] +#[derive(Copy, Clone, Eq, PartialEq)] pub struct Span { /// The id of the source file. pub source: SourceId, -- cgit v1.2.3