aboutsummaryrefslogtreecommitdiff
path: root/mingling_picker_macros/src
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_picker_macros/src')
-rw-r--r--mingling_picker_macros/src/flag.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mingling_picker_macros/src/flag.rs b/mingling_picker_macros/src/flag.rs
index 0d65382..71302ae 100644
--- a/mingling_picker_macros/src/flag.rs
+++ b/mingling_picker_macros/src/flag.rs
@@ -69,7 +69,12 @@ pub(crate) fn flag(input: TokenStream) -> TokenStream {
})
.unwrap_or(TS2::new());
+ #[cfg(feature = "mingling_support")]
let import = quote! { ::mingling::picker::PickerFlag };
+
+ #[cfg(not(feature = "mingling_support"))]
+ let import = quote! { ::mingling_picker::PickerFlag };
+
if ty.is_some() {
quote! { #import::<#ty_ts> }
} else {