diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-10 08:37:37 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-10 08:37:37 +0000 |
commit | 77d3b590b30480a6762cf3085c681fa5ef69dccd (patch) | |
tree | 4e5cf88da8fee74ec93f28ef9c5e4c815e91a679 | |
parent | 1901d7109efb27125cdd6bc5a75a99fd270e1c45 (diff) | |
parent | e3e111f4d658f22152a65228b5ba2b08768552e6 (diff) | |
download | obnam2-77d3b590b30480a6762cf3085c681fa5ef69dccd.tar.gz |
Merge branch 'no-matched' into 'main'
fix: don't use the matched! macro
See merge request larswirzenius/obnam!92
-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? |