We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features request: option to not create a new line before await
Input
#[tokio::main] async fn main() -> reqwest::Result<()> { reqwest::Client::new().get("http://example.org").send().await?.text().await?; Ok(()) }
Output
#[tokio::main] async fn main() -> reqwest::Result<()> { reqwest::Client::new() .get("http://example.org") .send() .await? .text() .await?; Ok(()) }
Expected output
#[tokio::main] async fn main() -> reqwest::Result<()> { reqwest::Client::new() .get("http://example.org") .send().await? .text().await?; Ok(()) }
Meta
rustfmt 1.4.21-nightly (01f2ead 2020-09-04)
The text was updated successfully, but these errors were encountered:
await
Closing this in favor of #4306
Sorry, something went wrong.
topecongiro
No branches or pull requests
Features request: option to not create a new line before await
Input
Output
Expected output
Meta
rustfmt 1.4.21-nightly (01f2ead 2020-09-04)
The text was updated successfully, but these errors were encountered: