The indentation of the second inner attribute isn't correct.
version: rustfmt 1.7.0-nightly (72893919 2024-04-07) -- built from rust-lang/rustfmt source.
commit: 7289391
configs used: defaults
Input
pub fn main() {
match a {
#![attr1]
#![attr2]
_ => None,
}
}
output
pub fn main() {
match a {
#![attr1]
#![attr2]
_ => None,
}
}
The fix will likely involve pass an indented shape when calling inner_attrs.rewrite().
The indentation of the second inner attribute isn't correct.
version:
rustfmt 1.7.0-nightly (72893919 2024-04-07)-- built from rust-lang/rustfmt source.commit: 7289391
configs used:
defaultsInput
output
The fix will likely involve pass an indented shape when calling
inner_attrs.rewrite().rustfmt/src/matches.rs
Line 107 in 7289391