Skip to content

Commit 478854c

Browse files
sdroegebilelmoussaoui
authored andcommitted
Fix / silence various new Rust 1.83 clippy warnings
1 parent e5b674e commit 478854c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

gdk-pixbuf/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

3+
#![allow(clippy::manual_c_str_literals)]
34
#![cfg_attr(docsrs, feature(doc_cfg))]
45
#![doc = include_str!("../README.md")]
56

@@ -8,7 +9,6 @@ pub use gio;
89
pub use glib;
910

1011
#[allow(clippy::too_many_arguments)]
11-
#[allow(clippy::manual_c_str_literals)]
1212
mod auto;
1313

1414
pub mod subclass;

glib/src/gobject/binding_group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct BindingGroupBuilder<'a> {
3434
transform_from: TransformFn,
3535
}
3636

37-
impl<'a> fmt::Debug for BindingGroupBuilder<'a> {
37+
impl fmt::Debug for BindingGroupBuilder<'_> {
3838
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3939
f.debug_struct("BindingGroupBuilder")
4040
.field("group", &self.group)

glib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#![cfg_attr(docsrs, feature(doc_cfg))]
44
#![allow(clippy::missing_safety_doc)]
5+
#![allow(clippy::manual_c_str_literals)]
56
#![allow(renamed_and_removed_lints)]
67
// Override docs references to point to locally generated docs
78
// rustdoc-stripper-ignore-next

glib/tests/unicollate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn init() {
77
// Make sure that all tests below are running with the system
88
// locale and not the "C" locale.
99
ONCE.call_once(|| unsafe {
10-
libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const _);
10+
libc::setlocale(libc::LC_ALL, c"".as_ptr() as *const _);
1111
});
1212
}
1313

0 commit comments

Comments
 (0)