diff --git a/yazi-core/src/mgr/commands/update_mimes.rs b/yazi-core/src/mgr/commands/update_mimes.rs index 99282904..256d9249 100644 --- a/yazi-core/src/mgr/commands/update_mimes.rs +++ b/yazi-core/src/mgr/commands/update_mimes.rs @@ -28,7 +28,7 @@ impl Mgr { let updates = opt .updates .into_iter() - .map(|(url, mime)| (Url::from(url.into_owned()), mime)) + .map(|(url, mime)| (Url::from(url.as_ref()), mime)) .filter(|(url, mime)| self.mimetype.by_url(url) != Some(mime)) .fold(HashMap::new(), |mut map, (u, m)| { for u in linked.from_file(&u) {