Skip to content

Commit e01ffd6

Browse files
committed
update the test cases
1 parent 967d746 commit e01ffd6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,15 +1725,15 @@ fn main() {
17251725
"#,
17261726
r###"There are 1 warnings in 1 files, 0 has been fixed.
17271727
##[Warning(clippy::unwrap_used)
1728-
@@ -3,4 +3,3 @@ fn main() {
1728+
@@ -5,4 +5,3 @@ fn main() {
17291729
fn main() {
17301730
17311731
17321732
let s = std::fs::read_to_string("Cargo.toml").unwrap();
17331733
println!("{s}");
17341734
}
17351735
=== 19a3477889393ea2cdd0edcb5e6ab30c ===
1736-
@@ -3,4 +3,3 @@ fn main() {
1736+
@@ -5,4 +5,3 @@ fn main() {
17371737
fn main() {
17381738
if let Ok(s) = std::fs::read_to_string("Cargo.toml") {
17391739
println!("{s}");
@@ -1940,7 +1940,7 @@ fn main() {
19401940
"2468ad1e3c0183f4a94859bcc5cea04ee3fc4ab1",
19411941
rd_run
19421942
),
1943-
"There are 33 warnings in 1 files, 0 has been fixed.\n"
1943+
"There are 32 warnings in 1 files, 0 has been fixed.\n"
19441944
);
19451945
}
19461946

@@ -1976,6 +1976,7 @@ fn main() {
19761976
"512236bac29f09ca798c93020ce377c30a4ed2a5", rd_run), @r###"
19771977
There are 30 warnings in 1 files, 0 has been fixed.
19781978
##[Warning(clippy::len_zero)
1979+
@@ -107 +107 @@ fn remove_previously_generated_files() {
19791980
fn remove_previously_generated_files() {
19801981
let command = Command::new("find")
19811982
.args(&[".", "-name", "*.rs.1"])
@@ -1998,6 +1999,7 @@ fn main() {
19981999
});
19992000
}
20002001
=== 19a3477889393ea2cdd0edcb5e6ab30c ===
2002+
@@ -107 +107 @@ fn remove_previously_generated_files() {
20012003
fn remove_previously_generated_files() {
20022004
let command = Command::new("find")
20032005
.args(&[".", "-name", "*.rs.1"])
@@ -2053,6 +2055,7 @@ fn main() {
20532055
"512236bac29f09ca798c93020ce377c30a4ed2a5", rd_run), @r###"
20542056
There are 30 warnings in 1 files, 0 has been fixed.
20552057
##[Warning(clippy::len_zero)
2058+
@@ -107 +107 @@ fn remove_previously_generated_files() {
20562059
fn remove_previously_generated_files() {
20572060
let command = Command::new("find")
20582061
.args(&[".", "-name", "*.rs.1"])
@@ -2075,6 +2078,7 @@ fn main() {
20752078
});
20762079
}
20772080
=== 19a3477889393ea2cdd0edcb5e6ab30c ===
2081+
@@ -107 +107 @@ fn remove_previously_generated_files() {
20782082
fn remove_previously_generated_files() {
20792083
let command = Command::new("find")
20802084
.args(&[".", "-name", "*.rs.1"])

0 commit comments

Comments
 (0)