1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #4839 from sylvestre/clippy

Fix some semicolon_if_nothing_returned
This commit is contained in:
Sylvestre Ledru 2023-05-07 09:55:29 +02:00 committed by GitHub
commit 00e1bbea33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View file

@ -255,7 +255,7 @@ fn test_cp_arg_update_none() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(TEST_HOW_ARE_YOU_SOURCE), "How are you?\n")
assert_eq!(at.read(TEST_HOW_ARE_YOU_SOURCE), "How are you?\n");
}
#[test]
@ -272,7 +272,7 @@ fn test_cp_arg_update_all() {
assert_eq!(
at.read(TEST_HOW_ARE_YOU_SOURCE),
at.read(TEST_HELLO_WORLD_SOURCE)
)
);
}
#[test]
@ -294,7 +294,7 @@ fn test_cp_arg_update_older_dest_not_older_than_src() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "new content\n")
assert_eq!(at.read(new), "new content\n");
}
#[test]
@ -319,7 +319,7 @@ fn test_cp_arg_update_older_dest_older_than_src() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(old), "new content\n")
assert_eq!(at.read(old), "new content\n");
}
#[test]
@ -345,7 +345,7 @@ fn test_cp_arg_update_short_no_overwrite() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "new content\n")
assert_eq!(at.read(new), "new content\n");
}
#[test]
@ -371,7 +371,7 @@ fn test_cp_arg_update_short_overwrite() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(old), "new content\n")
assert_eq!(at.read(old), "new content\n");
}
#[test]
@ -399,7 +399,7 @@ fn test_cp_arg_update_none_then_all() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "old content\n")
assert_eq!(at.read(new), "old content\n");
}
#[test]
@ -427,7 +427,7 @@ fn test_cp_arg_update_all_then_none() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "new content\n")
assert_eq!(at.read(new), "new content\n");
}
#[test]

View file

@ -867,7 +867,7 @@ fn test_mv_arg_update_none_then_all() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "old content\n")
assert_eq!(at.read(new), "old content\n");
}
#[test]
@ -895,7 +895,7 @@ fn test_mv_arg_update_all_then_none() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), "new content\n")
assert_eq!(at.read(new), "new content\n");
}
#[test]
@ -920,7 +920,7 @@ fn test_mv_arg_update_older_dest_older() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(old), new_content)
assert_eq!(at.read(old), new_content);
}
#[test]
@ -946,7 +946,7 @@ fn test_mv_arg_update_short_overwrite() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(old), new_content)
assert_eq!(at.read(old), new_content);
}
#[test]
@ -972,7 +972,7 @@ fn test_mv_arg_update_short_no_overwrite() {
.no_stderr()
.no_stdout();
assert_eq!(at.read(new), new_content)
assert_eq!(at.read(new), new_content);
}
#[test]