From abe8ff80f48da0b6c42446395c4a0f2f1b23e447 Mon Sep 17 00:00:00 2001 From: Linus Kirkwood Date: Sun, 21 Apr 2024 12:46:29 +1000 Subject: [PATCH] Silence clippy warning --- xsd-parser/src/generator/enum_case.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()), )) }