diff --git a/src/entity/column.rs b/src/entity/column.rs index 7e8a507b4..c3c064068 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -248,6 +248,7 @@ pub trait ColumnTrait: IdenStatic + Iterable + FromStr { } /// Construct a returning [`Expr`]. + #[allow(clippy::match_single_binding)] fn into_returning_expr(self, db_backend: DbBackend) -> Expr { match db_backend { _ => Expr::col(self), diff --git a/src/executor/insert.rs b/src/executor/insert.rs index 089e5860c..1bd074d6f 100644 --- a/src/executor/insert.rs +++ b/src/executor/insert.rs @@ -3,7 +3,7 @@ use crate::{ Iterable, PrimaryKeyToColumn, PrimaryKeyTrait, SelectModel, SelectorRaw, Statement, TryFromU64, TryInsert, }; -use sea_query::{Expr, FromValueTuple, Iden, InsertStatement, IntoColumnRef, Query, ValueTuple}; +use sea_query::{FromValueTuple, Iden, InsertStatement, Query, ValueTuple}; use std::{future::Future, marker::PhantomData}; /// Defines a structure to perform INSERT operations in an ActiveModel diff --git a/src/executor/update.rs b/src/executor/update.rs index f0d500e79..4a8045f52 100644 --- a/src/executor/update.rs +++ b/src/executor/update.rs @@ -2,7 +2,7 @@ use crate::{ error::*, ActiveModelTrait, ColumnTrait, ConnectionTrait, EntityTrait, IntoActiveModel, Iterable, PrimaryKeyTrait, SelectModel, SelectorRaw, UpdateMany, UpdateOne, }; -use sea_query::{Expr, FromValueTuple, Query, UpdateStatement}; +use sea_query::{FromValueTuple, Query, UpdateStatement}; /// Defines an update operation #[derive(Clone, Debug)]