diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 20:23:44 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 19169b76117db8b1d81f1aafa64a5440d042803d (patch) | |
tree | bdd07c05920f6217bd1512e6dc56c1d8fb1da6bf /net/src | |
parent | 694680ae3b2192c102f1b9a4d342677545cac629 (diff) |
Lint: Use is_empty().
- https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
- https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
Diffstat (limited to 'net/src')
-rw-r--r-- | net/src/wkd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/wkd.rs b/net/src/wkd.rs index cc14613c..50f32206 100644 --- a/net/src/wkd.rs +++ b/net/src/wkd.rs @@ -364,7 +364,7 @@ pub fn insert<P, S, V>(base_path: P, domain: S, variant: V, }).collect::<Vec<_>>(); // Any? - if addresses.len() == 0 { + if addresses.is_empty() { return Err(openpgp::Error::InvalidArgument( format!("Key {} does not have a UserID in {}", cert, domain) ).into()); |