diff --git a/gdk-pixbuf/src/lib.rs b/gdk-pixbuf/src/lib.rs index 068b1eb54dbf..1d662e697f2c 100644 --- a/gdk-pixbuf/src/lib.rs +++ b/gdk-pixbuf/src/lib.rs @@ -1,5 +1,6 @@ // Take a look at the license at the top of the repository in the LICENSE file. +#![allow(clippy::manual_c_str_literals)] #![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] @@ -8,7 +9,6 @@ pub use gio; pub use glib; #[allow(clippy::too_many_arguments)] -#[allow(clippy::manual_c_str_literals)] mod auto; pub mod subclass; diff --git a/glib/src/gobject/binding_group.rs b/glib/src/gobject/binding_group.rs index 52800e08a7dd..d71f4b9fd151 100644 --- a/glib/src/gobject/binding_group.rs +++ b/glib/src/gobject/binding_group.rs @@ -34,7 +34,7 @@ pub struct BindingGroupBuilder<'a> { transform_from: TransformFn, } -impl<'a> fmt::Debug for BindingGroupBuilder<'a> { +impl fmt::Debug for BindingGroupBuilder<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("BindingGroupBuilder") .field("group", &self.group) diff --git a/glib/src/lib.rs b/glib/src/lib.rs index 382a3d528894..a4ed600ef0f1 100644 --- a/glib/src/lib.rs +++ b/glib/src/lib.rs @@ -2,6 +2,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![allow(clippy::missing_safety_doc)] +#![allow(clippy::manual_c_str_literals)] #![allow(renamed_and_removed_lints)] // Override docs references to point to locally generated docs // rustdoc-stripper-ignore-next diff --git a/glib/tests/unicollate.rs b/glib/tests/unicollate.rs index 9801ea63703f..98759bd9902d 100644 --- a/glib/tests/unicollate.rs +++ b/glib/tests/unicollate.rs @@ -7,7 +7,7 @@ fn init() { // Make sure that all tests below are running with the system // locale and not the "C" locale. ONCE.call_once(|| unsafe { - libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const _); + libc::setlocale(libc::LC_ALL, c"".as_ptr() as *const _); }); }