Skip to content

Commit f12f371

Browse files
committed
Resolve ignored_unit_patterns pedantic clippy lint in test suite
warning: matching over `()` is more explicit --> tests/test.rs:950:22 | 950 | mac!(let _: <Self as Trait>::Associated2;); | ^ 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:1358:17 | 1358 | _ = async { | ^ help: use `()` instead of `_`: `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
1 parent a71e066 commit f12f371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ pub mod issue92 {
947947
mac!(let _ = <Self>::associated1(););
948948

949949
// trait items
950-
mac!(let _: <Self as Trait>::Associated2;);
950+
mac!(let (): <Self as Trait>::Associated2;);
951951
mac!(Self::ASSOCIATED2;);
952952
mac!(<Self>::ASSOCIATED2;);
953953
mac!(<Self as Trait>::ASSOCIATED2;);
@@ -1355,7 +1355,7 @@ pub mod issue161 {
13551355
impl Trait for MyStruct {
13561356
async fn f(self: Arc<Self>) {
13571357
futures::select! {
1358-
_ = async {
1358+
() = async {
13591359
println!("{}", self.0);
13601360
}.fuse() => {}
13611361
}

0 commit comments

Comments
 (0)