Skip to content

Commit 66c5ca9

Browse files
committed
bless for clippy
1 parent 541e2f9 commit 66c5ca9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/tools/clippy/tests/ui/enum_glob_use.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod in_fn_test {
1919
}
2020

2121
mod blurg {
22-
pub use std::cmp::Ordering::*; // ok, re-export
22+
// ok, re-export
2323
}
2424

2525
fn main() {

src/tools/clippy/tests/ui/enum_glob_use.stderr

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
error: unused import: `std::cmp::Ordering::*`
2+
--> $DIR/enum_glob_use.rs:22:13
3+
|
4+
LL | pub use std::cmp::Ordering::*; // ok, re-export
5+
| ^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `-D unused-imports` implied by `-D warnings`
8+
= help: to override `-D warnings` add `#[allow(unused_imports)]`
9+
110
error: usage of wildcard import for enum variants
211
--> $DIR/enum_glob_use.rs:5:5
312
|
@@ -19,5 +28,5 @@ error: usage of wildcard import for enum variants
1928
LL | use crate::Enum::*;
2029
| ^^^^^^^^^^^^^^ help: try: `crate::Enum::Foo`
2130

22-
error: aborting due to 3 previous errors
31+
error: aborting due to 4 previous errors
2332

0 commit comments

Comments
 (0)