From e0628be8ed8dba39d11e80b31167b661eda6a42b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 2 Jul 2021 20:23:33 -0700 Subject: [PATCH] Ignore doc_markdown clippy false positive Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7421 error: backticks are unbalanced --> src/lib.rs:128:1 | 128 | / //! Any error type that implements `std::error::Error` or dereferences to `dyn 129 | | //! std::error::Error` will work as a source. 130 | | //! 131 | | //! ```rust 132 | | //! # use std::fmt::{self, Display}; | |______________________________________^ | = note: `-D clippy::doc-markdown` implied by `-D clippy::pedantic` = help: a backtick may be missing a pair = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 02941c8..11df494 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -185,7 +185,11 @@ //! //! [`anyhow`]: https://github.com/dtolnay/anyhow -#![allow(clippy::module_name_repetitions)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7421 + clippy::doc_markdown, + clippy::module_name_repetitions, +)] mod aserror; mod display;