From 3329097557c7fd6b64398a5da2232421f36b0d65 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Sat, 7 Oct 2023 15:09:53 -0700 Subject: [PATCH] Apply suggestions from code review --- tests/newtype.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/newtype.rs b/tests/newtype.rs index 6e49a7c..71b06b3 100644 --- a/tests/newtype.rs +++ b/tests/newtype.rs @@ -11,7 +11,7 @@ use std::ops::Neg; struct MyNum(u32); #[test] -fn test_derive_unsingned_works() { +fn test_derive_unsigned_works() { fn do_nothing_on_unsigned(_input: impl Unsigned) {} let x = MyNum(42); @@ -104,5 +104,5 @@ fn test_float() { #[test] fn test_signed() { - assert_eq!(MyFloat(-2.0).is_negative(), true) + assert!(MyFloat(-2.0).is_negative()) }