1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 04:57:44 +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"; treefmt.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs =
inputs: inputs: inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] (
inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] ( system: let
system:
let
nixpkgs = import inputs.nixpkgs { inherit system; }; nixpkgs = import inputs.nixpkgs { inherit system; };
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
treefmt = inputs.treefmt.defaultPackage.${system}; treefmt = inputs.treefmt.defaultPackage.${system};

View file

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

View file

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