From e3e111f4d658f22152a65228b5ba2b08768552e6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 10 Feb 2021 10:35:37 +0200 Subject: fix: don't use the matched! macro Rust compiler gives an error due to it being too new. --- src/chunkmeta.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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? -- cgit v1.2.1