From 2df61db87545ec6f613518910af7ebedc7c3226b Mon Sep 17 00:00:00 2001 From: Arthur Silva Date: Fri, 6 Sep 2024 08:30:22 +0200 Subject: [PATCH] Apply suggestions from code review --- src/ser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ser.rs b/src/ser.rs index 0144fa2..f8fe606 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -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(), } } @@ -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)] @@ -151,7 +151,7 @@ impl SerializerOptions for CustomSerializerOptions { } #[inline] fn enum_as_map(&self) -> bool { - self.emum_as_map + self.enum_as_map } }