aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-11 14:16:14 +0100
committerHampusM <hampus@hampusmat.com>2022-11-11 14:16:14 +0100
commit65ddefdb61eb0bcdf36571cc34c8a1ae56b57d5f (patch)
tree44cc1a391afa9c035df63415bf3154c90900911f
parentafd19c6f07354e1d30fd9b765fac798fc68b018e (diff)
test: make small improvements in the declare_default_factory macro args tests
-rw-r--r--macros/src/factory/declare_default_args.rs8
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())
}
])
);