aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 6bf5ac1..232483e 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -227,7 +227,10 @@ pub fn injectable(args_stream: TokenStream, input_stream: TokenStream) -> TokenS
abort!(
is_async_flag.name().span(),
"The 'async' crate feature must be enabled to use this flag";
- suggestion = "In your Cargo.toml: syrette = {{ version = \"{}\", features = [\"async\"] }}",
+ suggestion = concat!(
+ "In your Cargo.toml: syrette = {{ version = \"{}\", features = ",
+ "[\"async\"] }}"
+ ),
PACKAGE_VERSION
);
}
@@ -257,7 +260,9 @@ pub fn injectable(args_stream: TokenStream, input_stream: TokenStream) -> TokenS
};
quote! {
- syrette::declare_interface!(#self_type -> #interface #threadsafe_sharable_flag);
+ syrette::declare_interface!(
+ #self_type -> #interface #threadsafe_sharable_flag
+ );
}
} else {
quote! {}