summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/statistics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/statistics.rs')
-rw-r--r--openpgp/examples/statistics.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/examples/statistics.rs b/openpgp/examples/statistics.rs
index 502af558..fc262ee8 100644
--- a/openpgp/examples/statistics.rs
+++ b/openpgp/examples/statistics.rs
@@ -427,7 +427,7 @@ fn main() -> openpgp::Result<()> {
}
}
- if key_flags.len() > 0 {
+ if !key_flags.is_empty() {
println!();
println!("# KeyFlags statistics");
println!();
@@ -443,7 +443,7 @@ fn main() -> openpgp::Result<()> {
}
}
- if p_sym.len() > 0 {
+ if !p_sym.is_empty() {
println!();
println!("# PreferredSymmetricAlgorithms statistics");
println!();
@@ -462,7 +462,7 @@ fn main() -> openpgp::Result<()> {
}
}
- if p_hashes.len() > 0 {
+ if !p_hashes.is_empty() {
println!();
println!("# PreferredHashlgorithms statistics");
println!();
@@ -482,7 +482,7 @@ fn main() -> openpgp::Result<()> {
}
}
- if p_comp.len() > 0 {
+ if !p_comp.is_empty() {
println!();
println!("# PreferredCompressionAlgorithms statistics");
println!();
@@ -502,7 +502,7 @@ fn main() -> openpgp::Result<()> {
}
}
- if p_aead.len() > 0 {
+ if !p_aead.is_empty() {
println!();
println!("# PreferredAEADAlgorithms statistics");
println!();