Skip to content

Conversation

@martin-g
Copy link
Member

@martin-g martin-g commented Sep 9, 2025

Motivation

#7375 added the Local runtime flavour but forgot to update the error message when an unknown value is passed to from_str()

Solution

Add local to the list of available flavours in the error message for from_str()

@Darksonn Darksonn added the A-tokio-macros Area: The tokio-macros crate label Sep 9, 2025
tokio-rs#7375 added the Local runtime
flavour but forgot to update the error message when an unknown value is
passed to from_str()
@martin-g martin-g force-pushed the add-local-flavour-to-error-message branch from b46e7d4 to be782ca Compare September 9, 2025 10:34
@ADD-SP ADD-SP changed the title macros: Add local to the list of available runtime flavours macros: add a missing flavor in the error message of tokio::main Sep 9, 2025
@ADD-SP ADD-SP changed the title macros: add a missing flavor in the error message of tokio::main macros: add missing local flavor to tokio::main error message Sep 9, 2025
@ADD-SP ADD-SP merged commit 0fc2397 into tokio-rs:master Sep 9, 2025
91 checks passed
@martin-g martin-g deleted the add-local-flavour-to-error-message branch September 9, 2025 19:48
This was referenced Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio-macros Area: The tokio-macros crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants