summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/src/updates.rs5
-rw-r--r--openpgp/src/types/mod.rs1
2 files changed, 6 insertions, 0 deletions
diff --git a/net/src/updates.rs b/net/src/updates.rs
index 8313cd62..32b35206 100644
--- a/net/src/updates.rs
+++ b/net/src/updates.rs
@@ -92,6 +92,11 @@ impl Manifest {
self.end
}
+ /// Is the Manifest empty?
+ pub fn is_empty(&self) -> bool {
+ self.prefixes.is_empty()
+ }
+
/// Returns the number of fingerprint prefixes in this Update
/// Manifest.
pub fn len(&self) -> usize {
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs
index cdad569f..833ca480 100644
--- a/openpgp/src/types/mod.rs
+++ b/openpgp/src/types/mod.rs
@@ -387,6 +387,7 @@ const ED25519_OID: &[u8] =
const CV25519_OID: &[u8] =
&[0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x05, 0x01];
+#[allow(clippy::len_without_is_empty)]
impl Curve {
/// Parses the given OID.
///