From cea18ee7dd49d158a50bd3aac320815969442144 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 30 Sep 2023 19:09:11 +0200 Subject: style: shorten lines exceeding 90 in width in injectable macro --- macros/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'macros/src/lib.rs') 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! {} -- cgit v1.2.3-18-g5258