mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 03:01:04 +02:00
refactor: general tidy up
fix clippy warnings from latest stable rust
This commit is contained in:
parent
ca4fe422f2
commit
d84139a914
5 changed files with 18 additions and 24 deletions
|
@ -132,16 +132,16 @@ impl<'a> ImageProvider<'a> {
|
|||
});
|
||||
}
|
||||
} else {
|
||||
self.load_into_image_sync(image)?;
|
||||
self.load_into_image_sync(&image)?;
|
||||
};
|
||||
|
||||
#[cfg(not(feature = "http"))]
|
||||
self.load_into_image_sync(image)?;
|
||||
self.load_into_image_sync(&image)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn load_into_image_sync(&self, image: gtk::Image) -> Result<()> {
|
||||
fn load_into_image_sync(&self, image: >k::Image) -> Result<()> {
|
||||
let pixbuf = match &self.location {
|
||||
ImageLocation::Icon { name, theme } => self.get_from_icon(name, theme),
|
||||
ImageLocation::Local(path) => self.get_from_file(path),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue