diff options
author | David Tolnay <dtolnay@chromium.org> | 2019-04-12 18:14:48 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-17 17:22:48 -0700 |
commit | afb1401500e4d2bab6e8af127502774c659a0af8 (patch) | |
tree | 834bd5709e740230c0f532c29caa787ada3311cf /vhost | |
parent | e246836798e8f0f7c17356ed848e296d61365adc (diff) | |
download | crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar.gz crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar.bz2 crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar.lz crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar.xz crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.tar.zst crosvm-afb1401500e4d2bab6e8af127502774c659a0af8.zip |
clippy: Resolve if_same_then_else
Suppressing the lint locally because by the author's and reviewers' judgement this was the clearest way to write this code. The lint is still valuable for catching mistakes in copied and pasted code elsewhere. TEST=bin/clippy Change-Id: I77477fce51571220fd6259072519b31764a15aeb Reviewed-on: https://chromium-review.googlesource.com/1566737 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'vhost')
-rw-r--r-- | vhost/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vhost/src/lib.rs b/vhost/src/lib.rs index 917e1dc..35256f9 100644 --- a/vhost/src/lib.rs +++ b/vhost/src/lib.rs @@ -165,6 +165,7 @@ pub trait Vhost: AsRawFd + std::marker::Sized { } // TODO(smbarber): This is copypasta. Eliminate the copypasta. + #[allow(clippy::if_same_then_else)] fn is_valid( &self, queue_max_size: u16, |