Skip to content

Commit 9369bae

Browse files
committed
fix clippy
1 parent 272abb7 commit 9369bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/functions/create_object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Function for CreateObject {
3535
fn invoke(&self, args: &[Value], _context: &Context) -> Result<Value, DscError> {
3636
debug!("{}", t!("functions.createObject.invoked"));
3737

38-
if args.len() % 2 != 0 {
38+
if !args.len().is_multiple_of(2) {
3939
return Err(DscError::Parser(t!("functions.createObject.argsMustBePairs").to_string()));
4040
}
4141

0 commit comments

Comments
 (0)