diff --git a/xsd-parser/src/generator/enum_case.rs b/xsd-parser/src/generator/enum_case.rs index cc77ce05..9c84e221 100644 --- a/xsd-parser/src/generator/enum_case.rs +++ b/xsd-parser/src/generator/enum_case.rs @@ -24,7 +24,7 @@ pub trait EnumCaseGenerator { fn get_name(&self, entity: &EnumCase, _: &Generator) -> String { sanitize(filter_type_name( - &entity.name.split(':').last().unwrap_or(&entity.name.to_owned()), + entity.name.split(':').last().unwrap_or(&entity.name.to_owned()), )) }