Open
Description
When a set of generic arguments hits max-width
, rustfmt
seems to have trouble with indentation.
Here's an example:
fn omg() {
fn bar() {
self.core
.exchange::<LeaseBufReader<_, BUFSIZ>, _, LeaseBufWriter<_, BUFSIZ>, _>(
device_index,
src,
dest,
)
.map_err(RequestError::from)
}
}
$ rustfmt --config max_width=80 test.rs
fn omg() {
fn bar() {
self.core
.exchange::<LeaseBufReader<_, BUFSIZ>, _, LeaseBufWriter<_, BUFSIZ>, _>(
device_index,
src,
dest,
)
.map_err(RequestError::from)
}
}
It properly indents the functions, but then gives up on the call to .exchange<...>
.