diff options
author | nickelc <constantin.nickel@gmail.com> | 2020-10-24 22:34:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 22:34:56 +0200 |
commit | c30ce1f65c5befb2a4b48eb4c16b7da3c0eafbd1 (patch) | |
tree | b21e015dd613fa64b804dc51ee2ada9d84e1f598 | |
parent | a95378a850f56cd3b020fb204d09a9b416384cb5 (diff) |
docs: remove `max_threads` mentions in tokio-macros (#3038)
-rw-r--r-- | tokio-macros/src/entry.rs | 2 | ||||
-rw-r--r-- | tokio-macros/src/lib.rs | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/tokio-macros/src/entry.rs b/tokio-macros/src/entry.rs index 8eb184a3..f5c62a4f 100644 --- a/tokio-macros/src/entry.rs +++ b/tokio-macros/src/entry.rs @@ -179,7 +179,7 @@ fn parse_knobs( return Err(syn::Error::new_spanned(namevalue, msg)); } name => { - let msg = format!("Unknown attribute {} is specified; expected one of: `flavor`, `worker_threads`, `max_threads`", name); + let msg = format!("Unknown attribute {} is specified; expected one of: `flavor`, `worker_threads`", name); return Err(syn::Error::new_spanned(namevalue, msg)); } } diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs index 47d780a2..552570fa 100644 --- a/tokio-macros/src/lib.rs +++ b/tokio-macros/src/lib.rs @@ -231,10 +231,6 @@ pub fn test(args: TokenStream, item: TokenStream) -> TokenStream { /// Marks async function to be executed by runtime, suitable to test environment /// -/// ## Options: -/// -/// - `max_threads=n` - Sets max threads to `n`. -/// /// ## Usage /// /// ```no_run |