Janitor: Fix clippy::match_like_matches_macro

This commit is contained in:
Tobias Hunger 2021-07-22 14:49:56 +02:00 committed by Simon Hausmann
parent d543bc3a1d
commit 97be634b9b
2 changed files with 2 additions and 8 deletions

View file

@ -369,10 +369,7 @@ impl CachedImage {
}
pub(crate) fn is_on_gpu(&self) -> bool {
match &*self.0.borrow() {
ImageData::Texture(_) => true,
_ => false,
}
matches!(&*self.0.borrow(), ImageData::Texture(_))
}
pub(crate) fn to_rgba(&self) -> Option<image::RgbaImage> {