Skip to content

Commit

Permalink
fix(android): properly use $wry on android_binding macro (#1075)
Browse files Browse the repository at this point in the history
* fix(android): properly `use $wry` on android_binding macro

The android_binding macro fails to compile due to the `use $wry::prelude::*;` with `expected { or *` error.

Regression from #1041 which was not released yet so I didn't add a change file.

* use {{ }}
  • Loading branch information
lucasfernog committed Nov 12, 2023
1 parent 9529b44 commit d2f4220
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/android/binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ macro_rules! android_binding {
($domain:ident, $package:ident) => {
::wry::android_binding!($domain, $package, ::wry)
};
// use import `android_setup` just to force the import path to use `wry::{}`
// as the macro breaks without braces
($domain:ident, $package:ident, $wry:path) => {{
use $wry::prelude::*;
use $wry::{android_setup as _, prelude::*};

android_fn!(
$domain,
Expand Down

0 comments on commit d2f4220

Please sign in to comment.