diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-10 00:59:11 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-21 15:49:42 +0100 |
commit | ac656c8b06f56d44278dc5f564fdd5ccb85e09bf (patch) | |
tree | c6bd916932963713fb6b73bf0ad0b64d213e1607 /bin/core | |
parent | 8984ac9400024a3122609cde396c1b473b49a00e (diff) |
Replace len() != 0 with is_empty() call
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/core')
-rw-r--r-- | bin/core/imag-annotate/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-annotate/src/lib.rs b/bin/core/imag-annotate/src/lib.rs index 61ce94ae..270dacd2 100644 --- a/bin/core/imag-annotate/src/lib.rs +++ b/bin/core/imag-annotate/src/lib.rs @@ -197,7 +197,7 @@ fn list(rt: &Runtime) -> Result<()> { .context("No ids supplied")? .ok_or_else(|| err_msg("No ids supplied"))?; - if ids.len() != 0 { + if ids.is_empty() { ids.into_iter() .map(|id| -> Result<_> { let lds = id.local_display_string(); |