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

Merge pull request #31 from tomberek/lambda_same

lambda: keep on same line
This commit is contained in:
Kevin Amado 2022-02-03 20:24:28 -05:00 committed by GitHub
commit 6ee708493c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 12 deletions

View file

@ -14,10 +14,8 @@
treefmt.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs:
inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] (
system:
let
inputs: inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] (
system: let
nixpkgs = import inputs.nixpkgs { inherit system; };
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
treefmt = inputs.treefmt.defaultPackage.${system};

View file

@ -84,8 +84,7 @@ pub fn rule(
{
steps.push_back(crate::builder::Step::Whitespace);
} else {
steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad);
steps.push_back(crate::builder::Step::Whitespace);
}
steps.push_back(crate::builder::Step::FormatWider(child.element));
}

View file

@ -15,8 +15,7 @@
d
)
(
a:
{ }:
a: { }:
/*
c
*/
@ -35,8 +34,7 @@
/*
b
*/
:
d
: d
)
(
a
@ -51,8 +49,7 @@
)
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
(
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
)
(
{ pkgs ? import ./.. { }