summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/userid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/userid.rs')
-rw-r--r--openpgp/src/packet/userid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs
index 028e9f73..2994f23e 100644
--- a/openpgp/src/packet/userid.rs
+++ b/openpgp/src/packet/userid.rs
@@ -627,7 +627,7 @@ impl UserID {
}
}
- if value.len() > 0 {
+ if !value.is_empty() {
value.push_str(" ");
}
value.push_str("(");
@@ -655,7 +655,7 @@ impl UserID {
}
}
- let something = value.len() > 0;
+ let something = !value.is_empty();
if something {
value.push_str(" <");
}