more clippy
This commit is contained in:
parent
19e918fdf7
commit
53e75f2555
@ -128,7 +128,7 @@ mod tests {
|
|||||||
name: "Example 0",
|
name: "Example 0",
|
||||||
};
|
};
|
||||||
let example_obj = ExampleSysObj::new(expl_obj_id, 42);
|
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();
|
let res = obj_manager.initialize();
|
||||||
assert!(res.is_ok());
|
assert!(res.is_ok());
|
||||||
assert_eq!(res.unwrap(), 1);
|
assert_eq!(res.unwrap(), 1);
|
||||||
@ -148,7 +148,7 @@ mod tests {
|
|||||||
was_initialized: false,
|
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();
|
let res = obj_manager.initialize();
|
||||||
assert!(res.is_ok());
|
assert!(res.is_ok());
|
||||||
assert_eq!(res.unwrap(), 2);
|
assert_eq!(res.unwrap(), 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user