From d2f42203d138537ac2036a24f2dd50ab3c81bdee Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 12 Nov 2023 11:27:36 -0300 Subject: [PATCH] fix(android): properly use $wry on android_binding macro (#1075) * 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 {{ }} --- src/android/binding.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/android/binding.rs b/src/android/binding.rs index 15c316387..0f0e3617d 100644 --- a/src/android/binding.rs +++ b/src/android/binding.rs @@ -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,