diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-10 10:35:37 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-10 10:35:37 +0200 |
commit | e3e111f4d658f22152a65228b5ba2b08768552e6 (patch) | |
tree | 4e5cf88da8fee74ec93f28ef9c5e4c815e91a679 /src/chunkmeta.rs | |
parent | 1901d7109efb27125cdd6bc5a75a99fd270e1c45 (diff) | |
download | obnam2-e3e111f4d658f22152a65228b5ba2b08768552e6.tar.gz |
fix: don't use the matched! macro
Rust compiler gives an error due to it being too new.
Diffstat (limited to 'src/chunkmeta.rs')
-rw-r--r-- | src/chunkmeta.rs | 5 |
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? |