Skip to content

Commit 3db3e10

Browse files
authored
Merge pull request #964 from gtk-rs/bilelmoussaoui/clippy-cleanup
clippy cleanup
2 parents 602ce5b + 939f097 commit 3db3e10

35 files changed

+56
-64
lines changed

cairo/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#![cfg_attr(feature = "dox", feature(doc_cfg))]
44
#![allow(clippy::missing_safety_doc)]
5-
#![allow(clippy::wrong_self_convention)]
6-
#![allow(clippy::non_send_fields_in_send_ty)]
75
#![doc = include_str!("../README.md")]
86

97
pub use ffi;

gdk-pixbuf/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)

gdk-pixbuf/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pub use gio;
88
pub use glib;
99

1010
#[allow(clippy::too_many_arguments)]
11-
#[allow(unused_imports)]
1211
mod auto;
1312

1413
pub mod subclass;

gdk-pixbuf/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)

gio/src/action_entry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ where
1212
name: String,
1313
parameter_type: Option<VariantType>,
1414
state: Option<Variant>,
15+
#[allow(clippy::type_complexity)]
1516
pub(crate) activate: Option<Box<dyn Fn(&O, &SimpleAction, Option<&Variant>) + 'static>>,
17+
#[allow(clippy::type_complexity)]
1618
pub(crate) change_state: Option<Box<dyn Fn(&O, &SimpleAction, Option<&Variant>) + 'static>>,
1719
}
1820

gio/src/auto/dbus_method_invocation.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
#[cfg_attr(feature = "dox", doc(cfg(unix)))]
77
use crate::UnixFDList;
88
use crate::{DBusConnection, DBusMessage, DBusMethodInfo, DBusPropertyInfo};
9-
use glib::{prelude::*, translate::*};
9+
#[cfg(any(unix, feature = "dox"))]
10+
#[cfg_attr(feature = "dox", doc(cfg(unix)))]
11+
use glib::prelude::*;
12+
use glib::translate::*;
1013
use std::fmt;
1114

1215
glib::wrapper! {

gio/src/auto/desktop_app_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl DesktopAppInfo {
237237
callback(&appinfo, pid)
238238
} else {
239239
panic!("cannot get closure...")
240-
};
240+
}
241241
}
242242
let pid_callback = if pid_callback_data.is_some() {
243243
Some(pid_callback_func as _)

gio/src/auto/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ impl<O: IsA<File>> FileExt for O {
948948
callback(current_num_bytes, total_num_bytes)
949949
} else {
950950
panic!("cannot get closure...")
951-
};
951+
}
952952
}
953953
let progress_callback = if progress_callback_data.is_some() {
954954
Some(progress_callback_func as _)
@@ -2036,7 +2036,7 @@ impl<O: IsA<File>> FileExt for O {
20362036
callback(current_num_bytes, total_num_bytes)
20372037
} else {
20382038
panic!("cannot get closure...")
2039-
};
2039+
}
20402040
}
20412041
let progress_callback = if progress_callback_data.is_some() {
20422042
Some(progress_callback_func as _)

gio/src/auto/subprocess_launcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl SubprocessLauncher {
5252
let child_setup_data: Box_<P> = Box_::new(child_setup);
5353
unsafe extern "C" fn child_setup_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {
5454
let callback: &P = &*(data as *mut _);
55-
(*callback)();
55+
(*callback)()
5656
}
5757
let child_setup = Some(child_setup_func::<P> as _);
5858
unsafe extern "C" fn destroy_notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {

gio/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)

0 commit comments

Comments
 (0)