1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-06 03:50:06 +02:00

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 {
matches!(self, AudioFile::Cached { .. })
match self {
AudioFile::Cached { .. } => true,
_ => false,
}
}
}