Skip to content

Commit

Permalink
fix: remove Deserialize where it causes issues
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ek committed Oct 11, 2024
1 parent 9391cba commit f209f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiling/lexing/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct Lexer {
pub scoping_mode: ScopingMode,
}

#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", derive(Serialize))]
struct LexState<'a> {
word: String,
is_indenting: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/compiling/lexing/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub enum ReadMode {
Future
}

#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", derive(Serialize))]
pub struct Reader<'a> {
pub code: &'a String,
pub row: usize,
Expand Down

0 comments on commit f209f28

Please sign in to comment.