Fix clippy warnings
This commit is contained in:
parent
43509afb31
commit
b65d441dea
@ -934,7 +934,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
let content = lines.join("");
|
let content = lines.join("");
|
||||||
let expected: TokenStream = content.parse().unwrap();
|
let expected: TokenStream = content.parse().unwrap();
|
||||||
let generated = generator(&cake_entity, &entity_serde_variant.1)
|
let generated = generator(cake_entity, &entity_serde_variant.1)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.fold(TokenStream::new(), |mut acc, tok| {
|
.fold(TokenStream::new(), |mut acc, tok| {
|
||||||
acc.extend(tok);
|
acc.extend(tok);
|
||||||
|
@ -669,6 +669,7 @@ mod tests {
|
|||||||
fn column_name_enum_name_1() {
|
fn column_name_enum_name_1() {
|
||||||
use sea_query::Iden;
|
use sea_query::Iden;
|
||||||
|
|
||||||
|
#[allow(clippy::enum_variant_names)]
|
||||||
mod hello {
|
mod hello {
|
||||||
use crate as sea_orm;
|
use crate as sea_orm;
|
||||||
use crate::entity::prelude::*;
|
use crate::entity::prelude::*;
|
||||||
|
@ -67,9 +67,7 @@ pub enum Relation {}
|
|||||||
|
|
||||||
impl RelationTrait for Relation {
|
impl RelationTrait for Relation {
|
||||||
fn def(&self) -> RelationDef {
|
fn def(&self) -> RelationDef {
|
||||||
match self {
|
panic!("No RelationDef")
|
||||||
_ => panic!("No RelationDef"),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user