Skip to content

Commit 3329097

Browse files
authored
Apply suggestions from code review
1 parent 0a8f903 commit 3329097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/newtype.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::ops::Neg;
1111
struct MyNum(u32);
1212

1313
#[test]
14-
fn test_derive_unsingned_works() {
14+
fn test_derive_unsigned_works() {
1515
fn do_nothing_on_unsigned(_input: impl Unsigned) {}
1616

1717
let x = MyNum(42);
@@ -104,5 +104,5 @@ fn test_float() {
104104

105105
#[test]
106106
fn test_signed() {
107-
assert_eq!(MyFloat(-2.0).is_negative(), true)
107+
assert!(MyFloat(-2.0).is_negative())
108108
}

0 commit comments

Comments
 (0)