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
let chains got stabilized recently but it seems that rustfmt has absolutely no idea how to format them rust-lang/rust#94927
sample code, nothing will be reformatted in this code:
pubenumColor{Blue,Red,Violet,}pubenumFlower{Rose,Tulip,Violet,}pubfnroses_are_red_violets_are_blue_printer((first_flower, first_flower_color):(Flower,Color),(second_flower, second_flower_color):(Flower,Color),pick_up_lines:&[&str],){// I messed up the formatting here a bitifletFlower::Rose = first_flower
&& let Color::Red = first_flower_color &&
let Flower::Violet = second_flower
&& let Color::Blue =
second_flower_color
&& let &[first_pick_up_line, ..] = pick_up_lines
{println!("Roses are red, violets are blue, {}", first_pick_up_line);}}fnmain(){roses_are_red_violets_are_blue_printer((Flower::Rose,Color::Red),(Flower::Violet,Color::Blue),&["sugar is sweet and so are you"],);}
The text was updated successfully, but these errors were encountered:
Thanks but going to close as a duplicate of #4955.
tl;dr, rustfmt doesn't format let expressions because there isn't any specification yet for how they should be formatted, even more so in chains - rust-lang/style-team#169
let chains got stabilized recently but it seems that rustfmt has absolutely no idea how to format them rust-lang/rust#94927
sample code, nothing will be reformatted in this code:
The text was updated successfully, but these errors were encountered: