From 54f7c18fb1568793161a89b02e4c1d8a4546a488 Mon Sep 17 00:00:00 2001 From: Markus Legner Date: Thu, 14 Dec 2023 14:40:58 +0100 Subject: [PATCH] chore: warnings for doc issues, deny in pre-commit and CI --- .pre-commit-config.yaml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aacd542..f0b0af2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,7 +61,7 @@ repos: pass_filenames: false - id: cargo-doc name: cargo-doc - entry: cargo doc + entry: env RUSTDOCFLAGS="-D warnings" cargo doc args: ["--workspace", "--no-deps"] language: rust types: [rust] diff --git a/Cargo.toml b/Cargo.toml index cd24411..12c77fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,4 +19,4 @@ tonic-build = "0.10" tracing = "0.1.40" [workspace.lints.rust] -missing_docs = "deny" +missing_docs = "warn"