diff --git a/flake.nix b/flake.nix index 237a4bf..ea9ae1f 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ # without nightly, and it might do too much. pre-commit.settings.hooks.rust-doc-comments = { enable = true; - files = ".*.rs$"; + files = "\\.rs$"; entry = "${pkgs.writeScript "rust-doc-comments" '' #!${pkgs.runtimeShell} set -uxo pipefail