Skip to content

Commit 4c10299

Browse files
Fix clippy warnings
1 parent e533055 commit 4c10299

File tree

14 files changed

+29
-29
lines changed

14 files changed

+29
-29
lines changed

gdk4-x11/src/x11_display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl X11Display {
8989
let f: Box_<F> = Box_::new(f);
9090
connect_raw(
9191
self.as_ptr() as *mut _,
92-
b"xevent\0".as_ptr() as *const _,
92+
c"xevent".as_ptr() as *const _,
9393
Some(transmute::<*const (), unsafe extern "C" fn()>(
9494
xevent_trampoline::<F> as *const (),
9595
)),

gdk4/src/drag_surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub trait DragSurfaceExtManual: IsA<DragSurface> {
3737
let f: Box_<F> = Box_::new(f);
3838
connect_raw(
3939
self.as_ptr() as *mut _,
40-
b"compute-size\0".as_ptr() as *const _,
40+
c"compute-size".as_ptr() as *const _,
4141
Some(transmute::<*const (), unsafe extern "C" fn()>(
4242
compute_size_trampoline::<F> as *const (),
4343
)),

gdk4/src/toplevel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub trait ToplevelExtManual: IsA<Toplevel> {
3131
let f: Box_<F> = Box_::new(f);
3232
connect_raw(
3333
self.as_ptr() as *mut _,
34-
b"compute-size\0".as_ptr() as *const _,
34+
c"compute-size".as_ptr() as *const _,
3535
Some(transmute::<*const (), unsafe extern "C" fn()>(
3636
compute_size_trampoline::<F> as *const (),
3737
)),

gtk4/src/drop_target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl DropTarget {
7575
let f: Box_<F> = Box_::new(f);
7676
connect_raw(
7777
self.as_ptr() as *mut _,
78-
b"drop\0".as_ptr() as *const _,
78+
c"drop".as_ptr() as *const _,
7979
Some(transmute::<*const (), unsafe extern "C" fn()>(
8080
drop_trampoline::<F> as *const (),
8181
)),

gtk4/src/editable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub trait EditableExtManual: IsA<Editable> + 'static {
2222
let f: Box<F> = Box::new(f);
2323
connect_raw(
2424
self.to_glib_none().0 as *mut _,
25-
b"insert-text\0".as_ptr() as *mut _,
25+
c"insert-text".as_ptr() as *mut _,
2626
Some(transmute::<usize, unsafe extern "C" fn()>(
2727
insert_text_trampoline::<Self, F> as usize,
2828
)),

gtk4/src/editable_label.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl EditableLabel {
2424
let f: Box_<F> = Box_::new(f);
2525
connect_raw(
2626
self.as_ptr() as *mut _,
27-
b"notify::editing\0".as_ptr() as *const _,
27+
c"notify::editing".as_ptr() as *const _,
2828
Some(transmute::<*const (), unsafe extern "C" fn()>(
2929
notify_editing_trampoline::<F> as *const (),
3030
)),

gtk4/src/event_controller_key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl EventControllerKey {
3636
let f: Box_<F> = Box_::new(f);
3737
connect_raw(
3838
self.as_ptr() as *mut _,
39-
b"key-pressed\0".as_ptr() as *const _,
39+
c"key-pressed".as_ptr() as *const _,
4040
Some(transmute::<*const (), unsafe extern "C" fn()>(
4141
key_pressed_trampoline::<F> as *const (),
4242
)),
@@ -72,7 +72,7 @@ impl EventControllerKey {
7272
let f: Box_<F> = Box_::new(f);
7373
connect_raw(
7474
self.as_ptr() as *mut _,
75-
b"key-released\0".as_ptr() as *const _,
75+
c"key-released".as_ptr() as *const _,
7676
Some(transmute::<*const (), unsafe extern "C" fn()>(
7777
key_released_trampoline::<F> as *const (),
7878
)),

gtk4/src/message_dialog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl MessageDialog {
2727
flags.into_glib(),
2828
type_.into_glib(),
2929
buttons.into_glib(),
30-
b"%s\0".as_ptr() as *const libc::c_char,
30+
c"%s".as_ptr() as *const libc::c_char,
3131
message.as_ptr(),
3232
ptr::null::<libc::c_char>(),
3333
))

gtk4/src/overlay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl Overlay {
1818
let f: Box<F> = Box::new(f);
1919
connect_raw(
2020
self.as_ptr() as *mut _,
21-
b"get-child-position\0".as_ptr() as *mut _,
21+
c"get-child-position".as_ptr() as *mut _,
2222
Some(transmute::<usize, unsafe extern "C" fn()>(
2323
get_child_position_trampoline::<F> as usize,
2424
)),

gtk4/src/shortcuts_section.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl ShortcutsSection {
2929
let f = Box::new(f);
3030
connect_raw(
3131
self.as_ptr() as *mut _,
32-
b"change-current-page\0".as_ptr() as *const _,
32+
c"change-current-page".as_ptr() as *const _,
3333
Some(transmute::<usize, unsafe extern "C" fn()>(
3434
change_current_page_trampoline::<F> as usize,
3535
)),

0 commit comments

Comments
 (0)