[Rust] [Axum] Fix clippy warning (#17637)

This commit is contained in:
Linh Tran Tuan
2024-01-18 09:58:59 +09:00
committed by GitHub
parent a730fe5048
commit 7e8b521069
2 changed files with 6 additions and 6 deletions

View File

@@ -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}}

View File

@@ -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()
}
}