From e282375de4ba75c69f7d619fc33c6250f6caba18 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Nov 2022 17:20:45 +0100 Subject: fix: allow declaring a concrete type as it's own interface --- macros/src/injectable/macro_args.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macros/src/injectable') diff --git a/macros/src/injectable/macro_args.rs b/macros/src/injectable/macro_args.rs index 1dd06f8..6dd683b 100644 --- a/macros/src/injectable/macro_args.rs +++ b/macros/src/injectable/macro_args.rs @@ -5,7 +5,8 @@ use syn::{Token, TypePath}; use crate::macro_flag::MacroFlag; use crate::util::iterator_ext::IteratorExt; -pub const INJECTABLE_MACRO_FLAGS: &[&str] = &["no_doc_hidden", "async"]; +pub const INJECTABLE_MACRO_FLAGS: &[&str] = + &["no_doc_hidden", "async", "no_declare_concrete_interface"]; pub struct InjectableMacroArgs { -- cgit v1.2.3-18-g5258