diff options
Diffstat (limited to 'src/chunkmeta.rs')
-rw-r--r-- | src/chunkmeta.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/chunkmeta.rs b/src/chunkmeta.rs index 7e0d6f3..37e2ed5 100644 --- a/src/chunkmeta.rs +++ b/src/chunkmeta.rs @@ -67,15 +67,12 @@ impl ChunkMeta { /// Is this a generation chunk? pub fn is_generation(&self) -> bool { - match self.generation { - Some(true) => true, - _ => false, - } + matches!(self.generation, Some(true)) } /// When did this generation end? pub fn ended(&self) -> Option<&str> { - self.ended.as_deref().map(|s| s) + self.ended.as_deref() } /// SHA256 checksum of the content of the chunk. |