1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: fix some clippy warnings

This commit is contained in:
Sylvestre Ledru 2024-05-25 09:02:54 +02:00
parent 4534f359f2
commit 09e53f3d2d
9 changed files with 52 additions and 72 deletions

View file

@ -318,13 +318,13 @@ fn test_invalid_substr() {
.stdout_only("\n");
new_ucmd!()
.args(&["substr", "abc", &(std::usize::MAX.to_string() + "0"), "1"])
.args(&["substr", "abc", &(usize::MAX.to_string() + "0"), "1"])
.fails()
.code_is(1)
.stdout_only("\n");
new_ucmd!()
.args(&["substr", "abc", "0", &(std::usize::MAX.to_string() + "0")])
.args(&["substr", "abc", "0", &(usize::MAX.to_string() + "0")])
.fails()
.code_is(1)
.stdout_only("\n");