Skip to content

Commit

Permalink
[Rust] [Axum] Fix clippy warning (#17637)
Browse files Browse the repository at this point in the history
  • Loading branch information
linxGnu committed Jan 18, 2024
1 parent a730fe5 commit 7e8b521
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ impl std::str::FromStr for {{{classname}}} {

impl PartialEq for {{{classname}}} {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}
{{/anyOf.size}}
Expand Down Expand Up @@ -604,7 +604,7 @@ impl std::str::FromStr for {{{classname}}} {

impl PartialEq for {{{classname}}} {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}
{{/oneOf.size}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ impl std::str::FromStr for AnyOfGet202Response {

impl PartialEq for AnyOfGet202Response {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}

Expand Down Expand Up @@ -519,7 +519,7 @@ impl std::str::FromStr for AnyOfObject {

impl PartialEq for AnyOfObject {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}

Expand Down Expand Up @@ -990,7 +990,7 @@ impl std::str::FromStr for Model12345AnyOfObject {

impl PartialEq for Model12345AnyOfObject {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}

Expand Down Expand Up @@ -2293,7 +2293,7 @@ impl std::str::FromStr for OneOfGet200Response {

impl PartialEq for OneOfGet200Response {
fn eq(&self, other: &Self) -> bool {
self.0.get().eq(other.0.get())
self.0.get() == other.0.get()
}
}

Expand Down

0 comments on commit 7e8b521

Please sign in to comment.