Vec![tuple, tuple, tuple] align by ','?

let x =
  vec![
    (a, b, c, d),
    (foo, bar, cat, dog)];

In this, is there a way to get this to align by the ',' ?

Except for manually doing it, not in any way I know of.

1 Like

Is there some directive to tell rust-fmt "don't reformat this block of code" ?

#[rustfmt::skip]
2 Likes

Didn't know that existed. Does it also work as an inner attribute eg in a module?

AFAIK, it should work anywhere attributes are allowed.

1 Like