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