aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-02 18:33:39 +0200
committerHampusM <hampus@hampusmat.com>2022-09-02 18:33:39 +0200
commit14a91d97c5e2f3184f2b91003ab8e2bc5a92b312 (patch)
treed8666d0f4491980c8da9feb542ea55bf48fab844 /macros/src/lib.rs
parent2a0735267d59a212853b91660b446c9473ffc6a2 (diff)
refactor: rename the factory macro flag 'async' to 'threadsafe'
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 3df1750..c9e12b1 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -2,7 +2,7 @@
#![deny(clippy::pedantic)]
#![deny(missing_docs)]
-//! Macros for the [Sy&rette](https://crates.io/crates/syrette) crate.
+//! Macros for the [Syrette](https://crates.io/crates/syrette) crate.
use proc_macro::TokenStream;
use quote::quote;
@@ -157,7 +157,7 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt
/// * (Zero or more) Flags. Like `a = true, b = false`
///
/// # Flags
-/// - `async` - Mark as async.
+/// - `threadsafe` - Mark as threadsafe.
///
/// # Panics
/// If the attributed item is not a type alias.
@@ -194,7 +194,7 @@ pub fn factory(args_stream: TokenStream, type_alias_stream: TokenStream) -> Toke
let is_async = flags
.iter()
- .find(|flag| flag.flag.to_string().as_str() == "async")
+ .find(|flag| flag.flag.to_string().as_str() == "threadsafe")
.map_or(false, |flag| flag.is_on.value);
let factory_type_alias::FactoryTypeAlias {