Make compatible with latest cargo deps

This commit is contained in:
Tor
2022-01-30 17:47:57 +00:00
committed by dcz
parent dfe2c60646
commit 417fe35e91
14 changed files with 196 additions and 74 deletions

View File

@ -87,7 +87,7 @@ mod c {
let receiver = Rc::try_unwrap(receiver).expect("References still present");
let receiver = receiver.into_inner();
let ctx = MainContext::default();
ctx.acquire();
let _acqu = ctx.acquire();
receiver.attach(
Some(&ctx),
move |msg| {
@ -95,6 +95,7 @@ mod c {
Continue(true)
},
);
#[cfg(not(feature = "glib_v0_14"))]
ctx.release();
}