1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

feat: more compact let in

This commit is contained in:
Kevin Amado 2022-01-27 18:43:59 -05:00
parent f85392e639
commit e081ba1b4e
No known key found for this signature in database
GPG key ID: FFF341057F503148

View file

@ -95,12 +95,13 @@ pub fn rule(
crate::config::Layout::Tall => {
steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad);
steps.push_back(crate::builder::Step::FormatWider(child.element));
}
crate::config::Layout::Wide => {
steps.push_back(crate::builder::Step::Whitespace);
steps.push_back(crate::builder::Step::Format(child.element));
}
}
steps.push_back(crate::builder::Step::Format(child.element));
steps
}