forked from mirrors/gstreamer-rs
Fix build with two-phase-borrows/NLL
This commit is contained in:
parent
cf9e875878
commit
dba110e8ad
1 changed files with 3 additions and 3 deletions
|
@ -417,7 +417,7 @@ where
|
||||||
{
|
{
|
||||||
let value = value as *const gobject_ffi::GValue;
|
let value = value as *const gobject_ffi::GValue;
|
||||||
|
|
||||||
let func = func as *const &mut (FnMut(T) -> bool);
|
let func = func as *mut &mut (FnMut(T) -> bool);
|
||||||
let value = &*(value as *const glib::Value);
|
let value = &*(value as *const glib::Value);
|
||||||
let value = value.get::<T>().unwrap();
|
let value = value.get::<T>().unwrap();
|
||||||
|
|
||||||
|
@ -432,7 +432,7 @@ unsafe extern "C" fn foreach_trampoline<T>(value: *const gobject_ffi::GValue, fu
|
||||||
where
|
where
|
||||||
for<'a> T: FromValueOptional<'a> + 'static,
|
for<'a> T: FromValueOptional<'a> + 'static,
|
||||||
{
|
{
|
||||||
let func = func as *const &mut (FnMut(T));
|
let func = func as *mut &mut (FnMut(T));
|
||||||
let value = &*(value as *const glib::Value);
|
let value = &*(value as *const glib::Value);
|
||||||
let value = value.get::<T>().unwrap();
|
let value = value.get::<T>().unwrap();
|
||||||
|
|
||||||
|
@ -447,7 +447,7 @@ unsafe extern "C" fn fold_trampoline<T, U>(
|
||||||
where
|
where
|
||||||
for<'a> T: FromValueOptional<'a> + 'static,
|
for<'a> T: FromValueOptional<'a> + 'static,
|
||||||
{
|
{
|
||||||
let func = func as *const &mut (FnMut(U, T) -> Result<U, U>);
|
let func = func as *mut &mut (FnMut(U, T) -> Result<U, U>);
|
||||||
let value = &*(value as *const glib::Value);
|
let value = &*(value as *const glib::Value);
|
||||||
let value = value.get::<T>().unwrap();
|
let value = value.get::<T>().unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue