Skip to content

Commit

Permalink
Fully qualified paths for None
Browse files Browse the repository at this point in the history
  • Loading branch information
Grinkers committed Feb 27, 2024
1 parent b9f08f0 commit 5c42ada
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/deserialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ fn expand_unit_struct(struct_name: &Ident) -> TokenStream2 {
"EdnDerive: couldn't convert {} into an unit struct",
edn
)),
line: None,
column: None,
ptr: None,
line: core::option::Option::None,
column: core::option::Option::None,
ptr: core::option::Option::None,
})
}
}
Expand All @@ -90,9 +90,9 @@ fn expand_enum(enum_name: &Ident, data_enum: &DataEnum) -> TokenStream2 {
"EdnDerive: couldn't convert {} keyword into enum",
edn
)),
line: None,
column: None,
ptr: None,
line: core::option::Option::None,
column: core::option::Option::None,
ptr: core::option::Option::None,
})
},
edn_rs::Edn::Str(s) => match &s[..] {
Expand All @@ -103,9 +103,9 @@ fn expand_enum(enum_name: &Ident, data_enum: &DataEnum) -> TokenStream2 {
"EdnDerive: couldn't convert {} string into enum",
edn
)),
line: None,
column: None,
ptr: None,
line: core::option::Option::None,
column: core::option::Option::None,
ptr: core::option::Option::None,
})
},
_ => std::result::Result::Err(
Expand All @@ -114,9 +114,9 @@ fn expand_enum(enum_name: &Ident, data_enum: &DataEnum) -> TokenStream2 {
"EdnDerive: couldn't convert {} into enum",
edn
)),
line: None,
column: None,
ptr: None,
line: core::option::Option::None,
column: core::option::Option::None,
ptr: core::option::Option::None,
})
}
}
Expand Down

0 comments on commit 5c42ada

Please sign in to comment.