mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
[Rust] [Axum] Fix clippy warning (#17637)
This commit is contained in:
@@ -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}}
|
||||
@@ -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}}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user