diff --git a/src/lib.rs b/src/lib.rs index 6ced3693..98e4eb1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -589,13 +589,13 @@ where use heck::ToSnakeCase; use sea_orm::prelude::*; - let filters = if keys.len() > 0 { + let filters = if !keys.is_empty() { keys[0].clone().1 } else { None }; - let order_by = if keys.len() > 0 { + let order_by = if !keys.is_empty() { keys[0].clone().2 } else { None