mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
cros_asyncv2: remove pointless drop() in test
Fixes a new clippy lint: <https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop> BUG=b:243677117 TEST=tools/clippy # with Rust 1.62 Change-Id: I8ff384821a2b20a4fabd1afde16d2f808caae636 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3854974 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
504fad24ea
commit
882363bbaf
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ mod test {
|
|||
pin_mut!(pending, done);
|
||||
|
||||
match select(pending, done).await {
|
||||
Either::Right((5, pending)) => drop(pending),
|
||||
Either::Right((5, _pending)) => (),
|
||||
_ => panic!("unexpected select result"),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue