Skip to content

Commit

Permalink
force pre commit to use same rust (#344)
Browse files Browse the repository at this point in the history
otherwise the pre-commit uses 1.70
  • Loading branch information
ss2165 authored Aug 3, 2023
1 parent eb85eea commit 9539444
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ pkgs, lib, config, ... }:

{
# https://devenv.sh/basics/
Expand Down Expand Up @@ -29,7 +29,9 @@

# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks.clippy.enable = true;
pre-commit.tools.clippy = lib.mkForce config.languages.rust.toolchain.clippy;
pre-commit.hooks.rustfmt.enable = true;
pre-commit.tools.rustfmt = lib.mkForce config.languages.rust.toolchain.rustfmt;

# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
Expand Down

0 comments on commit 9539444

Please sign in to comment.