Don't make resolve consume self on IconLocations

This commit is contained in:
Ridan Vandenbergh 2025-06-20 18:17:10 +02:00
parent 20b552cebd
commit bae6cb822e
No known key found for this signature in database

View file

@ -100,13 +100,11 @@ pub struct IconLocations {
} }
impl IconLocations { impl IconLocations {
pub fn resolve(self) -> Vec<Arc<Theme<'static>>> { pub fn resolve(&self) -> Vec<Arc<Theme<'static>>> {
let names = self.themes_directories.keys().cloned().collect::<Vec<_>>(); self.resolve_only(self.themes_directories.keys())
self.resolve_only(names)
} }
pub fn resolve_only<I, S>(self, theme_names: I) -> Vec<Arc<Theme<'static>>> pub fn resolve_only<I, S>(&self, theme_names: I) -> Vec<Arc<Theme<'static>>>
where where
I: IntoIterator<Item = S>, I: IntoIterator<Item = S>,
S: AsRef<OsStr>, S: AsRef<OsStr>,