fix clippy warnings

This commit is contained in:
Billy Chan 2021-10-08 18:22:25 +08:00
parent 2f90207d64
commit 23215c8dd5
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -68,6 +68,7 @@ pub trait ActiveModelTrait: Clone + Debug {
fn default() -> Self;
#[allow(clippy::question_mark)]
fn get_primary_key_value(&self) -> Option<ValueTuple> {
let mut cols = <Self::Entity as EntityTrait>::PrimaryKey::iter();
macro_rules! next {