Re-add support for Rust 1.40

This commit is contained in:
johannesd3 2021-02-09 09:14:32 +01:00
parent f67ceb5f6d
commit d3495cfed4

View file

@ -461,7 +461,10 @@ impl AudioFile {
} }
pub fn is_cached(&self) -> bool { pub fn is_cached(&self) -> bool {
matches!(self, AudioFile::Cached { .. }) match self {
AudioFile::Cached { .. } => true,
_ => false,
}
} }
} }