You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macro_rules! impl_stuff {
(
$($attributes:meta),*;
) => {
$(
#[$attributes]
)*
pub fn y_u_no_format() {
// Wrapping long comments by hand every time indentation changes is very annoying, and rustfmt normally helps with this,
// but for some reason refuses when the `$(#[$attributes])*` is attached to the function.
}
}
}
fn main() {}
It makes no sense to me why this would affect formatting inside the function, the code compiles just fine.
The text was updated successfully, but these errors were encountered:
in
.rustfmt.toml
:in
main.rs
:It makes no sense to me why this would affect formatting inside the function, the code compiles just fine.
The text was updated successfully, but these errors were encountered: