From a0e68698e33fa928f1d9f208d68b17df9f8bb568 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 2 Dec 2023 18:25:33 -0800 Subject: [PATCH] Work around doc_link_with_quotes pedantic clippy lint warning: possible intra-doc link using quotes instead of backticks --> serde/src/de/mod.rs:67:41 | 67 | //! - Rc\ *(if* features = ["rc"] *is enabled)* | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes = note: `-W clippy::doc-link-with-quotes` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::doc_link_with_quotes)]` warning: possible intra-doc link using quotes instead of backticks --> serde/src/de/mod.rs:68:42 | 68 | //! - Arc\ *(if* features = ["rc"] *is enabled)* | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes warning: possible intra-doc link using quotes instead of backticks --> serde/src/ser/mod.rs:64:41 | 64 | //! - Rc\ *(if* features = ["rc"] *is enabled)* | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes warning: possible intra-doc link using quotes instead of backticks --> serde/src/ser/mod.rs:65:42 | 65 | //! - Arc\ *(if* features = ["rc"] *is enabled)* | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes --- serde/src/de/mod.rs | 4 ++-- serde/src/ser/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index c22ed070b..c9919d92b 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -64,8 +64,8 @@ //! - RefCell\ //! - Mutex\ //! - RwLock\ -//! - Rc\ *(if* features = ["rc"] *is enabled)* -//! - Arc\ *(if* features = ["rc"] *is enabled)* +//! - Rc\ *(if* features = \["rc"\] *is enabled)* +//! - Arc\ *(if* features = \["rc"\] *is enabled)* //! - **Collection types**: //! - BTreeMap\ //! - BTreeSet\ diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index f1820c20a..75c45140e 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -61,8 +61,8 @@ //! - RefCell\ //! - Mutex\ //! - RwLock\ -//! - Rc\ *(if* features = ["rc"] *is enabled)* -//! - Arc\ *(if* features = ["rc"] *is enabled)* +//! - Rc\ *(if* features = \["rc"\] *is enabled)* +//! - Arc\ *(if* features = \["rc"\] *is enabled)* //! - **Collection types**: //! - BTreeMap\ //! - BTreeSet\