diff --git a/src/compiling/lexing/lexer.rs b/src/compiling/lexing/lexer.rs index e39075f..8836ef9 100644 --- a/src/compiling/lexing/lexer.rs +++ b/src/compiling/lexing/lexer.rs @@ -32,7 +32,7 @@ pub struct Lexer { pub scoping_mode: ScopingMode, } -#[cfg_attr(feature = "serde", derive(Serialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] struct LexState<'a> { word: String, is_indenting: bool, diff --git a/src/compiling/lexing/reader.rs b/src/compiling/lexing/reader.rs index 32d5afd..438fae9 100644 --- a/src/compiling/lexing/reader.rs +++ b/src/compiling/lexing/reader.rs @@ -9,7 +9,7 @@ pub enum ReadMode { Future } -#[cfg_attr(feature = "serde", derive(Serialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Reader<'a> { pub code: &'a String, pub row: usize,