Compare commits
2 Commits
2c47074a45
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95c9a3f192
|
||
|
|
c822e1d2eb
|
@@ -27,9 +27,14 @@
|
||||
|
||||
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin"];
|
||||
|
||||
perSystem = {pkgs, ...}: let
|
||||
perSystem = {
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
craneLib = crane.mkLib pkgs;
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
manifest = (lib.importTOML "${src}/Cargo.toml").package;
|
||||
|
||||
# runtime dependencies
|
||||
buildInputs = with pkgs; [
|
||||
@@ -66,7 +71,7 @@
|
||||
programs.alejandra.enable = true;
|
||||
programs.rustfmt = {
|
||||
enable = true;
|
||||
edition = (builtins.fromTOML (builtins.readFile "${src}/Cargo.toml")).package.edition;
|
||||
edition = manifest.edition;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -60,7 +60,10 @@ async fn main() -> Result<(), CommandError> {
|
||||
}
|
||||
};
|
||||
|
||||
println!("{}", CommandError::InvalidArgument(ArgsError::InvalidConfigExtension(Some(String::from("txt")))));
|
||||
println!(
|
||||
"{}",
|
||||
CommandError::InvalidArgument(ArgsError::InvalidConfigExtension(Some(String::from("txt"))))
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user