Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #141 from sdroege/nll
Browse files Browse the repository at this point in the history
Fix compilation with two-phase-borrows (aka NLL)
  • Loading branch information
GuillaumeGomez committed Aug 8, 2018
2 parents 9c25068 + 94208e2 commit d00924b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list_store.rs
Expand Up @@ -54,7 +54,7 @@ impl<O: IsA<ListStore> + IsA<glib::object::Object>> ListStoreExtManual for O {

unsafe extern "C" fn compare_func_trampoline(a: glib_ffi::gconstpointer, b: glib_ffi::gconstpointer, func: glib_ffi::gpointer) -> i32
{
let func = func as *const &mut (FnMut(&Object, &Object) -> Ordering);
let func = func as *mut &mut (FnMut(&Object, &Object) -> Ordering);

let a = from_glib_borrow(a as *mut gobject_ffi::GObject);
let b = from_glib_borrow(b as *mut gobject_ffi::GObject);
Expand Down

0 comments on commit d00924b

Please sign in to comment.