diff options
author | HampusM <hampus@hampusmat.com> | 2023-09-30 19:09:11 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-09-30 19:09:11 +0200 |
commit | cea18ee7dd49d158a50bd3aac320815969442144 (patch) | |
tree | 0f1e8c97927d1196f688a1ac6adb94c2a515bd5f | |
parent | c02a3d5b5313ab33ef31c61002db33a91859269c (diff) |
style: shorten lines exceeding 90 in width in injectable macro
-rw-r--r-- | macros/src/lib.rs | 9 |
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! {} |