more clippy

This commit is contained in:
Robin Müller 2022-05-15 14:22:38 +02:00
parent 19e918fdf7
commit 53e75f2555
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -128,7 +128,7 @@ mod tests {
name: "Example 0",
};
let example_obj = ExampleSysObj::new(expl_obj_id, 42);
assert!(obj_manager.insert(Box::new(example_obj)), true);
assert!(obj_manager.insert(Box::new(example_obj)));
let res = obj_manager.initialize();
assert!(res.is_ok());
assert_eq!(res.unwrap(), 1);
@ -148,7 +148,7 @@ mod tests {
was_initialized: false,
};
assert!(obj_manager.insert(Box::new(second_example_obj)), true);
assert!(obj_manager.insert(Box::new(second_example_obj)));
let res = obj_manager.initialize();
assert!(res.is_ok());
assert_eq!(res.unwrap(), 2);