Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 7, 2023
1 parent 0a8f903 commit 3329097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/newtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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())
}

0 comments on commit 3329097

Please sign in to comment.