Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurprs authored Sep 6, 2024
1 parent 7ccf763 commit 2df61db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub trait SerializerOptions {
#[inline]
fn to_custom(&self) -> CustomSerializerOptions {
CustomSerializerOptions {
emum_as_map: self.enum_as_map(),
enum_as_map: self.enum_as_map(),
packed: self.packed(),
}
}
Expand All @@ -121,7 +121,7 @@ impl SerializerOptions for DefaultSerializerOptions {}
/// Custom serializer options
pub struct CustomSerializerOptions {
packed: bool,
emum_as_map: bool,
enum_as_map: bool,
}

#[allow(missing_docs)]
Expand Down Expand Up @@ -151,7 +151,7 @@ impl SerializerOptions for CustomSerializerOptions {
}
#[inline]
fn enum_as_map(&self) -> bool {
self.emum_as_map
self.enum_as_map
}
}

Expand Down

0 comments on commit 2df61db

Please sign in to comment.