general: clippy lint fixes
This commit is contained in:
parent
4fbf0e2203
commit
1687411536
3 changed files with 5 additions and 5 deletions
|
|
@ -106,6 +106,7 @@ glib::wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is where the member functions of IvApplication go.
|
// This is where the member functions of IvApplication go.
|
||||||
|
#[allow(clippy::new_without_default)]
|
||||||
impl IvApplication {
|
impl IvApplication {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
glib::Object::new(&[
|
glib::Object::new(&[
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use gio::prelude::*;
|
use gio::prelude::*;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
pub fn utf8_collate_key_for_filename(filename: &String) -> String {
|
pub fn utf8_collate_key_for_filename(filename: &str) -> String {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(glib::ffi::g_utf8_collate_key_for_filename(
|
from_glib_full(glib::ffi::g_utf8_collate_key_for_filename(
|
||||||
filename.to_glib_none().0,
|
filename.to_glib_none().0,
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ impl IvImageView {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn set_wallpaper(uri: String) {
|
async fn set_wallpaper(uri: String) {
|
||||||
match wallpaper::set_from_uri(
|
if let Err(e) = wallpaper::set_from_uri(
|
||||||
&WindowIdentifier::default(),
|
&WindowIdentifier::default(),
|
||||||
&uri,
|
&uri,
|
||||||
false,
|
false,
|
||||||
|
|
@ -439,10 +439,9 @@ async fn set_wallpaper(uri: String) {
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Err(e) => log::error!(
|
log::error!(
|
||||||
"Failed to set the wallpaper using the freedesktop portal: {}",
|
"Failed to set the wallpaper using the freedesktop portal: {}",
|
||||||
e
|
e
|
||||||
),
|
);
|
||||||
Ok(_) => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue