fix: clippy

This commit is contained in:
Nova
2022-09-25 03:44:43 -04:00
parent 69f7a432d5
commit 9dd8580271
4 changed files with 9 additions and 7 deletions

View File

@@ -112,7 +112,9 @@ impl Drawable for Model {
.get_or_try_init(|| {
self.pending_model_path
.get()
.and_then(|path| SKModel::from_file(sk, path.as_path(), None).clone())
.and_then(|path| SKModel::from_file(sk, path.as_path(), None))
.as_ref()
.cloned()
.map(SendWrapper::new)
.ok_or(Error)
})