Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
matzipan committed Jan 3, 2024
1 parent b5bfd40 commit 3cfb3c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xml_schema_derive/src/xsd/choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Choice {
self
.element
.iter()
.map(|element| element.get_field_implementation(context, prefix, multiple, optional))
.map(|element| element.get_field_implementation(context, prefix, optional))
.collect()
}
}
1 change: 0 additions & 1 deletion xml_schema_derive/src/xsd/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ impl Element {
&self,
context: &XsdContext,
prefix: &Option<String>,
multiple: bool,
optional: bool,
) -> TokenStream {
if self.name.is_empty() {
Expand Down
4 changes: 2 additions & 2 deletions xml_schema_derive/src/xsd/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Implementation for Sequence {
let elements: TokenStream = self
.elements
.iter()
.map(|element| element.get_field_implementation(context, prefix, false, false))
.map(|element| element.get_field_implementation(context, prefix, false))
.collect();

let choices: TokenStream = self
Expand Down Expand Up @@ -61,7 +61,7 @@ impl Sequence {
let elements: TokenStream = self
.elements
.iter()
.map(|element| element.get_field_implementation(context, prefix, false, false))
.map(|element| element.get_field_implementation(context, prefix, false))
.collect();

let choices: TokenStream = self
Expand Down

0 comments on commit 3cfb3c2

Please sign in to comment.