general: clippy lint fixes

This commit is contained in:
Christopher Davis 2021-09-22 22:57:54 -07:00
parent 4fbf0e2203
commit 1687411536
3 changed files with 5 additions and 5 deletions

View file

@ -431,7 +431,7 @@ impl IvImageView {
}
async fn set_wallpaper(uri: String) {
match wallpaper::set_from_uri(
if let Err(e) = wallpaper::set_from_uri(
&WindowIdentifier::default(),
&uri,
false,
@ -439,10 +439,9 @@ async fn set_wallpaper(uri: String) {
)
.await
{
Err(e) => log::error!(
log::error!(
"Failed to set the wallpaper using the freedesktop portal: {}",
e
),
Ok(_) => (),
);
}
}