summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/src/updates.rs5
1 files changed, 5 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 {