Fix clippy warnings

This commit is contained in:
Billy Chan 2021-10-21 16:26:42 +08:00
parent 43509afb31
commit b65d441dea
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7
3 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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::*;

View File

@ -67,9 +67,7 @@ pub enum Relation {}
impl RelationTrait for Relation {
fn def(&self) -> RelationDef {
match self {
_ => panic!("No RelationDef"),
}
panic!("No RelationDef")
}
}