Skip to content

Commit

Permalink
Silence clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lkirkwood committed Apr 21, 2024
1 parent 5e9a0b6 commit 938809c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xsd-parser/src/generator/enum_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,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()),
))
sanitize(filter_type_name(entity.name.split(':').last().unwrap_or(&entity.name.to_owned())))
}

fn get_type_name(&self, entity: &EnumCase, gen: &Generator) -> String {
Expand Down

0 comments on commit 938809c

Please sign in to comment.