aboutsummaryrefslogtreecommitdiff
path: root/macros/src/injectable/macro_args.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-12-25 22:53:13 +0100
committerHampusM <hampus@hampusmat.com>2023-12-28 12:00:11 +0100
commit607d8d50b76665b67ca6f3124aa81773bec110b7 (patch)
tree142a7c17c4e254eabd5a5396975921bca1869bec /macros/src/injectable/macro_args.rs
parentc501a5cc770f632eba1529de09bd3ae2d7958de6 (diff)
WIP Linkme dependency removalwithout-linkme
Diffstat (limited to 'macros/src/injectable/macro_args.rs')
-rw-r--r--macros/src/injectable/macro_args.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/macros/src/injectable/macro_args.rs b/macros/src/injectable/macro_args.rs
index 719d551..f0469f7 100644
--- a/macros/src/injectable/macro_args.rs
+++ b/macros/src/injectable/macro_args.rs
@@ -7,12 +7,7 @@ use crate::macro_flag::MacroFlag;
use crate::util::error::diagnostic_error_enum;
use crate::util::iterator_ext::IteratorExt;
-pub const INJECTABLE_MACRO_FLAGS: &[&str] = &[
- "no_doc_hidden",
- "async",
- "no_declare_concrete_interface",
- "constructor",
-];
+pub const INJECTABLE_MACRO_FLAGS: &[&str] = &["no_doc_hidden", "async", "constructor"];
pub struct InjectableMacroArgs
{
@@ -194,7 +189,7 @@ mod tests
fn can_parse_with_flags_only()
{
let input_args = quote! {
- async = false, no_declare_concrete_interface = false
+ async = false, no_doc_hidden = false
};
let injectable_macro_args = parse2::<InjectableMacroArgs>(input_args).unwrap();
@@ -212,7 +207,7 @@ mod tests
)))
},
MacroFlag {
- name: format_ident!("no_declare_concrete_interface"),
+ name: format_ident!("no_doc_hidden"),
value: MacroFlagValue::Literal(Lit::Bool(LitBool::new(
false,
Span::call_site()