Rust fmt configuration for vertical chaining

293 Views Asked by At

The following is what I desire to format to:

async fn main() {
    let req = reqwest::get("http://wttr.in/brisbane")
        .await
        .expect("Failed to get weather data")
        .text()
        .await;
}

This is what I get (unless it does not fit on the one line, then it will format it like above):

    let req = reqwest::get("http://wttr.in/brisbane").await.expect("Failed to get weather data").text().await;

I want it to always format vertically, regardless of width. How can I do this?

0

There are 0 best solutions below