Skip to content

Commit 1d93093

Browse files
committed
glib: Fix new clippy warnings
1 parent e732ffa commit 1d93093

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glib/src/value_array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl ValueArray {
118118
b: ffi::gconstpointer,
119119
func: ffi::gpointer,
120120
) -> i32 {
121-
let func = func as *mut &mut (dyn FnMut(&Value, &Value) -> Ordering);
121+
let func = func as *mut &mut dyn FnMut(&Value, &Value) -> Ordering;
122122

123123
let a = &*(a as *const Value);
124124
let b = &*(b as *const Value);
@@ -127,9 +127,9 @@ impl ValueArray {
127127
}
128128
unsafe {
129129
let mut func = compare_func;
130-
let func_obj: &mut (dyn FnMut(&Value, &Value) -> Ordering) = &mut func;
130+
let func_obj: &mut dyn FnMut(&Value, &Value) -> Ordering = &mut func;
131131
let func_ptr =
132-
&func_obj as *const &mut (dyn FnMut(&Value, &Value) -> Ordering) as ffi::gpointer;
132+
&func_obj as *const &mut dyn FnMut(&Value, &Value) -> Ordering as ffi::gpointer;
133133

134134
gobject_ffi::g_value_array_sort_with_data(
135135
self.to_glib_none_mut().0,

0 commit comments

Comments
 (0)