forked from loafle/openapi-generator-original
[Rust] [Axum] Fix clippy warning (#17637)
This commit is contained in:
parent
a730fe5048
commit
7e8b521069
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user