summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-02-10 10:35:37 +0200
committerLars Wirzenius <liw@liw.fi>2021-02-10 10:35:37 +0200
commite3e111f4d658f22152a65228b5ba2b08768552e6 (patch)
tree4e5cf88da8fee74ec93f28ef9c5e4c815e91a679
parent1901d7109efb27125cdd6bc5a75a99fd270e1c45 (diff)
downloadobnam2-e3e111f4d658f22152a65228b5ba2b08768552e6.tar.gz
fix: don't use the matched! macro
Rust compiler gives an error due to it being too new.
-rw-r--r--src/chunkmeta.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chunkmeta.rs b/src/chunkmeta.rs
index 37e2ed5..fc5ffff 100644
--- a/src/chunkmeta.rs
+++ b/src/chunkmeta.rs
@@ -67,7 +67,10 @@ impl ChunkMeta {
/// Is this a generation chunk?
pub fn is_generation(&self) -> bool {
- matches!(self.generation, Some(true))
+ match self.generation {
+ Some(true) => true,
+ _ => false,
+ }
}
/// When did this generation end?