From 65ddefdb61eb0bcdf36571cc34c8a1ae56b57d5f Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 11 Nov 2022 14:16:14 +0100 Subject: test: make small improvements in the declare_default_factory macro args tests --- macros/src/factory/declare_default_args.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macros/src/factory') 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> @@ -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()) } ]) ); -- cgit v1.2.3-18-g5258