diff --git a/.idea/runConfigurations/Clippy.xml b/.idea/runConfigurations/Clippy.xml new file mode 100644 index 0000000..816669e --- /dev/null +++ b/.idea/runConfigurations/Clippy.xml @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index d037299..a428774 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,7 +136,7 @@ mod tests { assert!(obj_back_casted.is_some()); let expl_obj_back_casted = obj_back_casted.unwrap(); assert_eq!(expl_obj_back_casted.dummy, 42); - assert_eq!(expl_obj_back_casted.was_initialized, true); + assert!(expl_obj_back_casted.was_initialized); let second_obj_id = ObjectId { id: 12, @@ -156,6 +156,6 @@ mod tests { assert!(obj_back_casted.is_some()); let expl_obj_back_casted = obj_back_casted.unwrap(); assert_eq!(expl_obj_back_casted.string, String::from("Hello Test")); - assert_eq!(expl_obj_back_casted.was_initialized, true); + assert!(expl_obj_back_casted.was_initialized); } }