diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-17 15:52:45 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-17 16:28:19 +0100 |
commit | 330876cefdb19781b80acf4894b9b4f98c705f82 (patch) | |
tree | d124f430f66c747cef9ed2d459f4c98d443a4847 | |
parent | 1a58ed4c6b9b5fbfb3f8d2aad36cf84dfb77ac58 (diff) | |
download | spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar.gz spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar.bz2 spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar.lz spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar.xz spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.tar.zst spectrum-330876cefdb19781b80acf4894b9b4f98c705f82.zip |
release/checks/rustfmt.nix: use the right edition
Currently, all Rust code in Spectrum is the 2018 edition. If we ever end up using multiple editions, we'll have to do something more complicated here. Fixes: 6c0c956 ("nix/checks.nix: add rustfmt check") Signed-off-by: Alyssa Ross <hi@alyssa.is>
-rw-r--r-- | release/checks/rustfmt.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/checks/rustfmt.nix b/release/checks/rustfmt.nix index 3ec3941..b045c51 100644 --- a/release/checks/rustfmt.nix +++ b/release/checks/rustfmt.nix @@ -13,6 +13,6 @@ runCommand "spectrum-rustfmt" { nativeBuildInputs = [ rustfmt ]; } '' shopt -s globstar - rustfmt --check $src/**/*.rs + rustfmt --check --edition 2018 $src/**/*.rs touch $out '') (_: {}) |