This repository was archived by the owner on Mar 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl WaylandWindow {
50
50
unsafe extern "C" fn destroy_notify < P : Fn ( & WaylandWindow , & str ) + ' static > (
51
51
data : glib:: ffi:: gpointer ,
52
52
) {
53
- Box :: from_raw ( data as * mut _ ) ;
53
+ let _ = Box :: from_raw ( data as * mut _ ) ;
54
54
}
55
55
unsafe {
56
56
from_glib ( ffi:: gdk_wayland_window_export_handle (
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ impl Clipboard {
32
32
_clipboard : * mut ffi:: GtkClipboard ,
33
33
user_data : gpointer ,
34
34
) {
35
- Box_ :: < F > :: from_raw ( user_data as * mut _ ) ;
35
+ let _ = Box_ :: < F > :: from_raw ( user_data as * mut _ ) ;
36
36
}
37
37
let stashed_targets: Vec < _ > = targets. iter ( ) . map ( |e| e. to_glib_none ( ) ) . collect ( ) ;
38
38
let mut t = Vec :: with_capacity ( stashed_targets. len ( ) ) ;
@@ -61,7 +61,7 @@ impl Clipboard {
61
61
if !success {
62
62
// Cleanup function is not called in case of a failure.
63
63
unsafe {
64
- Box_ :: < F > :: from_raw ( user_data as * mut _ ) ;
64
+ let _ = Box_ :: < F > :: from_raw ( user_data as * mut _ ) ;
65
65
}
66
66
}
67
67
success
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl<O: IsA<TreeSortable>> TreeSortableExtManual for O {
131
131
> (
132
132
ptr : gpointer ,
133
133
) {
134
- Box :: < F > :: from_raw ( ptr as * mut _ ) ;
134
+ let _ = Box :: < F > :: from_raw ( ptr as * mut _ ) ;
135
135
}
136
136
unsafe {
137
137
ffi:: gtk_tree_sortable_set_default_sort_func (
@@ -187,7 +187,7 @@ impl<O: IsA<TreeSortable>> TreeSortableExtManual for O {
187
187
> (
188
188
ptr : gpointer ,
189
189
) {
190
- Box :: < F > :: from_raw ( ptr as * mut _ ) ;
190
+ let _ = Box :: < F > :: from_raw ( ptr as * mut _ ) ;
191
191
}
192
192
unsafe {
193
193
ffi:: gtk_tree_sortable_set_sort_func (
You can’t perform that action at this time.
0 commit comments