We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 913ba54 commit f918819Copy full SHA for f918819
src/array.rs
@@ -261,9 +261,11 @@ pub trait INSMutableArray : INSArray {
261
NSComparisonResult::from_ordering((*compare)(obj1, obj2))
262
}
263
264
+ let f: extern fn(&Self::Item, &Self::Item, &mut F) -> NSComparisonResult =
265
+ compare_with_closure;
266
let mut closure = compare;
267
unsafe {
- let _: () = msg_send![self, sortUsingFunction:compare_with_closure::<Self::Item, F>
268
+ let _: () = msg_send![self, sortUsingFunction:f
269
context:&mut closure];
270
271
0 commit comments