-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit a71e066
committed
Resolve ignored_unit_patterns pedantic clippy lint in generated code
warning: matching over `()` is more explicit
--> tests/test.rs:31:5
|
31 | / {
32 | | }
| |_____^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
= note: `-W clippy::ignored-unit-patterns` implied by `-W clippy::pedantic`
warning: matching over `()` is more explicit
--> tests/test.rs:34:29
|
34 | async fn selfref(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:36:33
|
36 | async fn selfmut(&mut self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:40:40
|
40 | async fn elided_lifetime(_x: &str) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:42:49
|
42 | async fn explicit_lifetime<'a>(_x: &'a str) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:48:27
|
48 | async fn calls(&self) {
| ___________________________^
49 | | self.selfref().await;
50 | | Self::elided_lifetime("").await;
51 | | <Self>::elided_lifetime("").await;
52 | | }
| |_____^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:54:35
|
54 | async fn calls_mut(&mut self) {
| ___________________________________^
55 | | self.selfmut().await;
56 | | }
| |_____^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:65:30
|
65 | async fn selfvalue(self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:67:29
|
67 | async fn selfref(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:69:33
|
69 | async fn selfmut(&mut self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:73:40
|
73 | async fn elided_lifetime(_x: &str) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:75:49
|
75 | async fn explicit_lifetime<'a>(_x: &'a str) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:81:27
|
81 | async fn calls(&self) {
| ___________________________^
82 | | self.selfref().await;
83 | | Self::elided_lifetime("").await;
84 | | <Self>::elided_lifetime("").await;
85 | | }
| |_____^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:87:35
|
87 | async fn calls_mut(&mut self) {
| ___________________________________^
88 | | self.selfmut().await;
89 | | }
| |_____^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:116:27
|
116 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:126:27
|
126 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:131:27
|
131 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:141:27
|
141 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:146:27
|
146 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:173:71
|
173 | async fn f(&self, (a, ref mut b, ref c, d): (u8, u8, u8, u8)) {
| _______________________________________________________________________^
174 | | let _a: u8 = a;
175 | | let _b: &mut u8 = b;
176 | | let _c: &u8 = c;
177 | | let _d: u8 = d;
178 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:192:26
|
192 | async fn a(self) {
| __________________________^
193 | | println!("{}", self);
194 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:195:31
|
195 | async fn b(&mut self) {
| _______________________________^
196 | | println!("{}", self);
197 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:198:27
|
198 | async fn c(&self) {
| ___________________________^
199 | | println!("{}", self);
200 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:217:26
|
217 | async fn f(self) {
| __________________________^
218 | | struct Struct;
219 | |
220 | | impl Struct {
... |
224 | | }
225 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:232:22
|
232 | async fn f() {
| ______________________^
233 | | unimplemented!()
234 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:249:30
|
249 | async fn f<U>(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:277:30
|
277 | async fn f(_x: Self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:295:43
|
295 | async fn example(self: Arc<Self>) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:308:64
|
308 | async fn myfn(&self, _: PhantomData<dyn Trait + Send>) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:327:27
|
327 | async fn f(&self) {
| ___________________________^
328 | | println!("{}", self.string);
329 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:344:9
|
344 | / {
345 | | do_something(&mut self);
346 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:353:30
|
353 | async fn f(mut self) {
| ______________________________^
354 | | do_something(&mut self);
355 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:436:22
|
436 | async fn f() {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:534:43
|
534 | async fn foo(&mut self, v: usize) {
| ___________________________________________^
535 | | self.0 = v;
536 | | self.bar().await;
537 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:546:29
|
546 | async fn bar(&self) {
| _____________________________^
547 | | info!(val = self.0);
548 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:651:65
|
651 | async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
| _________________________________________________________________^
652 | | self.f(x).await
653 | | }
| |_________________^ help: use `()` instead of `_`: `()`
...
658 | implement_commands_workaround!(K: Send);
| --------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
= note: this warning originates in the macro `implement_commands_workaround` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: matching over `()` is more explicit
--> tests/test.rs:664:65
|
664 | async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
| _________________________________________________________________^
665 | | self.f(x).await
666 | | }
| |_________________^ help: use `()` instead of `_`: `()`
...
671 | implement_commands!(K: Send);
| ---------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
= note: this warning originates in the macro `implement_commands` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: matching over `()` is more explicit
--> tests/test.rs:691:27
|
691 | async fn method() {
| ___________________________^
692 | | let _ = Self;
693 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:698:27
|
698 | async fn method() {
| ___________________________^
699 | | let _ = Self(0);
700 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:705:27
|
705 | async fn method() {
| ___________________________^
706 | | let _ = Self { x: 0 };
707 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:712:27
|
712 | async fn method() {
| ___________________________^
713 | | let _ = Self;
714 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:747:32
|
747 | async fn method(&self) {
| ________________________________^
748 | | macro_rules! t {
749 | | () => {{
750 | | let _: &Self = self;
... |
753 | | t!();
754 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:766:36
|
766 | async fn associated(&self) {
| ____________________________________^
767 | | println!("Associated:{}", Self::ASSOCIATED);
768 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:787:32
|
787 | async fn handle(&self) {
| ________________________________^
788 | | let Enum::Variant = self;
789 | | let Self::Variant = self;
790 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:802:27
|
802 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:803:33
|
803 | async fn g(self: &Self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:823:30
|
823 | async fn camelCase() {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:846:27
|
846 | async fn f(&self) {
| ___________________________^
847 | | let Tuple::V() = self;
848 | | let Self::V() = self;
849 | | let _ = Self::V;
850 | | let _ = Self::V();
851 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:856:27
|
856 | async fn f(&self) {
| ___________________________^
857 | | let Struct::V {} = self;
858 | | let Self::V {} = self;
859 | | let _ = Self::V {};
860 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:877:27
|
877 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:882:27
|
882 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:887:27
|
887 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:919:37
|
919 | async fn associated2(&self) {
| _____________________________________^
920 | | // trait items
921 | | mac!(let _: Self::Associated2;);
922 | | mac!(let _: <Self>::Associated2;);
... |
929 | | mac!(let _ = <Self as Trait>::associated2(self););
930 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:942:37
|
942 | async fn associated2(&self) {
| _____________________________________^
943 | | // inherent items
944 | | mac!(Self::ASSOCIATED1;);
945 | | mac!(<Self>::ASSOCIATED1;);
... |
956 | | mac!(let _ = <Self as Trait>::associated2(self););
957 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:967:37
|
967 | async fn associated2(&self) {
| _____________________________________^
968 | | mac!(let Self: Self = *self;);
969 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:989:26
|
989 | async fn func2() {
| __________________________^
990 | | mac!(Self::func1());
991 | |
992 | | macro_rules! mac2 {
... |
997 | | mac2!();
998 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1075:42
|
1075 | async fn load(&self, _key: &str) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1092:27
|
1092 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1184:65
|
1184 | async fn async_trait(_: Flagger<'_>, flag: &AtomicBool) {
| _________________________________________________________________^
1185 | | flag.fetch_or(true, Ordering::AcqRel);
1186 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1200:55
|
1200 | async fn async_trait(self, flag: &AtomicBool) {
| _______________________________________________________^
1201 | | flag.fetch_or(true, Ordering::AcqRel);
1202 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1254:22
|
1254 | async fn x() {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1256:22
|
1256 | async fn z() {
| ______________________^
1257 | | unimplemented!()
1258 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1319:27
|
1319 | async fn f(&self) {
| ___________________________^
1320 | | const MAX: u16 = 128;
1321 | | println!("{}", MAX);
1322 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1334:27
|
1334 | async fn f(&self) {
| ___________________________^
1335 | | self::f();
1336 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1356:37
|
1356 | async fn f(self: Arc<Self>) {
| _____________________________________^
1357 | | futures::select! {
1358 | | _ = async {
1359 | | println!("{}", self.0);
1360 | | }.fuse() => {}
1361 | | }
1362 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1373:27
|
1373 | async fn f(&self) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1385:65
|
1385 | async fn foo(&self, _callback: impl FnMut(&str) + Send) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1392:65
|
1392 | async fn foo(&self, _callback: impl FnMut(&str) + Send) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1404:31
|
1404 | async fn foo(_n: i32) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1430:67
|
1430 | async fn f(counter: &Cell<usize>, _: IncrementOnDrop<'_>) {
| ___________________________________________________________________^
1431 | | assert_eq!(counter.get(), 0); // second arg not dropped yet
1432 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1463:37
|
1463 | async fn f(self: Arc<Self>) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1482:87
|
1482 | async fn cfg_param(&self, #[cfg(any())] param: u8, #[cfg(all())] _unused: u8) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1484:86
|
1484 | async fn cfg_param_wildcard(&self, #[cfg(any())] _: u8, #[cfg(all())] _: u8) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1490:11
|
1490 | ) {
| ___________^
1491 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1508:41
|
1508 | async fn take_ref(&self, _: &T) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1515:51
|
1515 | async fn take_ref(&self, (a, b): &(T, T)) {
| ___________________________________________________^
1516 | | let _ = a;
1517 | | let _ = b;
1518 | | }
| |_________^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1525:60
|
1525 | async fn take_ref(&self, (_a, _b, _c): &(T, T, T)) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1550:59
|
1550 | async fn f(Tuple(_, _int): Tuple<Droppable, i32>) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1557:66
|
1557 | async fn f(Tuple { 1: _int, .. }: Tuple<Droppable, i32>) {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
warning: matching over `()` is more explicit
--> tests/test.rs:1604:22
|
1604 | async fn f() {}
| ^^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns1 parent 7d4e192 commit a71e066Copy full SHA for a71e066
1 file changed
+1
-1
lines changed+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
409 |
| - | |
| 409 | + | |
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
|
0 commit comments