diff options
author | HampusM <hampus@hampusmat.com> | 2022-11-11 14:16:14 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-11-11 14:16:14 +0100 |
commit | 65ddefdb61eb0bcdf36571cc34c8a1ae56b57d5f (patch) | |
tree | 44cc1a391afa9c035df63415bf3154c90900911f | |
parent | afd19c6f07354e1d30fd9b765fac798fc68b018e (diff) |
test: make small improvements in the declare_default_factory macro args tests
-rw-r--r-- | macros/src/factory/declare_default_args.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/factory/declare_default_args.rs b/macros/src/factory/declare_default_args.rs index 0828f9e..03d52bd 100644 --- a/macros/src/factory/declare_default_args.rs +++ b/macros/src/factory/declare_default_args.rs @@ -65,6 +65,7 @@ mod tests use syn::token::Dyn; use syn::{ parse2, + LitBool, Path, PathArguments, PathSegment, @@ -76,7 +77,6 @@ mod tests }; use super::*; - use crate::macro_flag::MacroFlag; #[test] fn can_parse_with_interface_only() -> Result<(), Box<dyn Error>> @@ -143,7 +143,7 @@ mod tests dec_def_fac_args.flags, Punctuated::from_iter(vec![MacroFlag { flag: format_ident!("threadsafe"), - is_on: syn::LitBool::new(true, Span::call_site()) + is_on: LitBool::new(true, Span::call_site()) }]) ); @@ -183,11 +183,11 @@ mod tests Punctuated::from_iter(vec![ MacroFlag { flag: format_ident!("threadsafe"), - is_on: syn::LitBool::new(true, Span::call_site()) + is_on: LitBool::new(true, Span::call_site()) }, MacroFlag { flag: format_ident!("async"), - is_on: syn::LitBool::new(false, Span::call_site()) + is_on: LitBool::new(false, Span::call_site()) } ]) ); |