From 9f8e08fda8902f05582a3b524f62b819280cb3fc Mon Sep 17 00:00:00 2001 From: Douglas Wilson Date: Tue, 28 May 2024 09:32:12 +0100 Subject: [PATCH] driveby, fix `.pre-commit-config.yaml` to disallow warnings in `cargo doc` --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa88a8a45..4813932be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: - id: cargo-doc name: cargo doc description: Generate documentation with `cargo doc`. - entry: cargo doc --no-deps --all-features --workspace + entry: RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features --workspace language: system files: \.rs$ pass_filenames: false