Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit 0a2f4c4

Browse files
committed
Fix warnings in tests
1 parent 6584be7 commit 0a2f4c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.lock

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,14 @@ mod test {
652652
expected = "This function should never be called with `parts == 0` or `parts > 3`"
653653
)]
654654
fn omitted_parts_with_zero() {
655-
OmittedParts::from(0);
655+
let _ = OmittedParts::from(0);
656656
}
657657

658658
#[test]
659659
#[should_panic(
660660
expected = "This function should never be called with `parts == 0` or `parts > 3`"
661661
)]
662662
fn omitted_parts_with_four() {
663-
OmittedParts::from(4);
663+
let _ = OmittedParts::from(4);
664664
}
665665
}

0 commit comments

Comments
 (0)