@@ -69,35 +69,5 @@ LL + .extension()
6969LL ~ .map_or(false, |ext| ext.eq_ignore_ascii_case("EXT12"));
7070 |
7171
72- error: case-sensitive file extension comparison
73- --> $DIR/case_sensitive_file_extension_comparisons.rs:30:13
74- |
75- LL | let _ = String::new().to_lowercase().ends_with(".EXT12");
76- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77- |
78- = help: consider using a case-insensitive comparison instead
79- = note: to_lowercase allocates memory, this can be avoided by using Path
80- help: use std::path::Path
81- |
82- LL ~ let _ = std::path::Path::new(&String::new())
83- LL + .extension()
84- LL ~ .map_or(false, |ext| ext.eq_ignore_ascii_case("EXT12"));
85- |
86-
87- error: case-sensitive file extension comparison
88- --> $DIR/case_sensitive_file_extension_comparisons.rs:31:13
89- |
90- LL | let _ = String::new().to_uppercase().ends_with(".EXT12");
91- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92- |
93- = help: consider using a case-insensitive comparison instead
94- = note: to_uppercase allocates memory, this can be avoided by using Path
95- help: use std::path::Path
96- |
97- LL ~ let _ = std::path::Path::new(&String::new())
98- LL + .extension()
99- LL ~ .map_or(false, |ext| ext.eq_ignore_ascii_case("EXT12"));
100- |
101-
102- error: aborting due to 7 previous errors
72+ error: aborting due to 5 previous errors
10373
0 commit comments