From 852f7db1b6eca577d4814f02e6880b03da2da003 Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 14 Nov 2024 15:03:08 +1000 Subject: [PATCH] enable deserialize for all --- src/compiling/lexing/lexer.rs | 2 +- src/compiling/lexing/reader.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,