From c30ce1f65c5befb2a4b48eb4c16b7da3c0eafbd1 Mon Sep 17 00:00:00 2001 From: nickelc Date: Sat, 24 Oct 2020 22:34:56 +0200 Subject: docs: remove `max_threads` mentions in tokio-macros (#3038) --- tokio-macros/src/entry.rs | 2 +- tokio-macros/src/lib.rs | 4 ---- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3