summaryrefslogtreecommitdiffstats
path: root/sqv/src/sqv.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sqv/src/sqv.rs')
-rw-r--r--sqv/src/sqv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs
index 2ba9765a..a9828ee0 100644
--- a/sqv/src/sqv.rs
+++ b/sqv/src/sqv.rs
@@ -98,7 +98,7 @@ impl<'a> VerificationHelper for VHelper<'a> {
let (certs, errs) = certs.into_iter().fold(
(Vec::with_capacity(count), Vec::new()),
|(mut certs, mut errs), a| {
- if certs.len() == 0 {
+ if certs.is_empty() {
certs.push(a);
} else if certs[certs.len() - 1].fingerprint() == a.fingerprint() {
// Merge `a` into the last element.
@@ -113,7 +113,7 @@ impl<'a> VerificationHelper for VHelper<'a> {
(certs, errs)
});
- if errs.len() > 0 {
+ if !errs.is_empty() {
eprintln!("Error merging duplicate keys:");
for err in errs.iter() {
eprintln!(" {}", err);