Skip to content

Commit

Permalink
Merge pull request #150 from lumeohq/dmitry/fix-clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
DmitrySamoylov authored Oct 9, 2023
2 parents 79d3b97 + eb066eb commit 015113f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xsd-parser/src/parser/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Struct {
types
.get(&key)
.map(|s| s.fields.borrow().clone())
.unwrap_or_else(Vec::new)
.unwrap_or_default()
})
.filter(|f| {
//TODO: remove this workaround for fields names clash
Expand Down Expand Up @@ -87,7 +87,7 @@ impl Struct {
types
.get(&key)
.map(|s| s.fields.borrow().clone())
.unwrap_or_else(Vec::new)
.unwrap_or_default()
})
.collect::<Vec<StructField>>();

Expand Down
2 changes: 1 addition & 1 deletion xsd-parser/src/parser/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn parse_union(union: &Node) -> RsEntity {
let mut cases = union
.attribute(attribute::MEMBER_TYPES)
.map(create_enum_cases)
.unwrap_or_else(Vec::new);
.unwrap_or_default();

let subtypes = union
.children()
Expand Down

0 comments on commit 015113f

Please sign in to comment.