mirror of
https://github.com/danbulant/icon
synced 2026-05-19 04:08:36 +00:00
Don't make resolve consume self on IconLocations
This commit is contained in:
parent
20b552cebd
commit
bae6cb822e
1 changed files with 3 additions and 5 deletions
|
|
@ -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>,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue