From 19e3a8e256b1696ef63ffe939ff598245b1470ee Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 15 May 2022 14:21:09 +0200 Subject: [PATCH] clippy fix --- .idea/runConfigurations/Clippy.xml | 19 +++++++++++++++++++ src/lib.rs | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .idea/runConfigurations/Clippy.xml 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); } }