1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 04:57:44 +00:00

feat: remove whitespace around dynamic

This commit is contained in:
Kevin Amado 2022-02-01 19:15:41 -05:00
parent 9debef2ad0
commit 863976c10f
No known key found for this signature in database
GPG key ID: FFF341057F503148
3 changed files with 7 additions and 11 deletions

View file

@ -22,15 +22,15 @@
let 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};
fenix = inputs.fenix.packages.${ system }; fenix = inputs.fenix.packages.${system};
fenixPlatform = nixpkgs.makeRustPlatform { inherit (fenix.latest) cargo rustc; }; fenixPlatform = nixpkgs.makeRustPlatform { inherit (fenix.latest) cargo rustc; };
in in
{ {
checks = { defaultPackage = inputs.self.defaultPackage.${ system }; }; checks = { defaultPackage = inputs.self.defaultPackage.${system}; };
defaultApp = { defaultApp = {
type = "app"; type = "app";
program = "${inputs.self.defaultPackage.${ system }}/bin/alejandra"; program = "${inputs.self.defaultPackage.${system}}/bin/alejandra";
}; };
defaultPackage = defaultPackage =
fenixPlatform.buildRustPackage fenixPlatform.buildRustPackage

View file

@ -21,9 +21,7 @@ pub fn rule(
steps.push_back(crate::builder::Step::NewLine); steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad); steps.push_back(crate::builder::Step::Pad);
} }
crate::config::Layout::Wide => { crate::config::Layout::Wide => {}
steps.push_back(crate::builder::Step::Whitespace);
}
} }
// /**/ // /**/
@ -59,9 +57,7 @@ pub fn rule(
steps.push_back(crate::builder::Step::NewLine); steps.push_back(crate::builder::Step::NewLine);
steps.push_back(crate::builder::Step::Pad); steps.push_back(crate::builder::Step::Pad);
} }
crate::config::Layout::Wide => { 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));

View file

@ -8,7 +8,7 @@ a
/* /*
d d
*/ */
e.${ f } e.${f}
} }
/* /*
g g