This commit is contained in:
sxyazi 2025-06-11 10:13:38 +08:00
parent ee95b6f3b1
commit 4d5eb57c1a
No known key found for this signature in database

View file

@ -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) {