From e7df53701c6e71dce4a8a376a84838134ea73a65 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 30 Jul 2023 16:15:23 -0700 Subject: [PATCH] Resolve doc_markdown clippy lint from PR 2448 warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2870:25 | 2870 | /// Reaches crate::private::de::content::VariantDeserializer::tuple_variant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown = note: `-W clippy::doc-markdown` implied by `-W clippy::pedantic` help: try | 2870 | /// Reaches `crate::private::de::content::VariantDeserializer::tuple_variant` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2871:17 | 2871 | /// Content::Seq case | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2871 | /// `Content::Seq` case | ~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2872:21 | 2872 | /// via FlatMapDeserializer::deserialize_enum | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2872 | /// via `FlatMapDeserializer::deserialize_enum` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2894:25 | 2894 | /// Reaches crate::private::de::content::VariantDeserializer::struct_variant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2894 | /// Reaches `crate::private::de::content::VariantDeserializer::struct_variant` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2895:17 | 2895 | /// Content::Seq case | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2895 | /// `Content::Seq` case | ~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2896:21 | 2896 | /// via FlatMapDeserializer::deserialize_enum | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2896 | /// via `FlatMapDeserializer::deserialize_enum` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2921:25 | 2921 | /// Reaches crate::private::de::content::VariantDeserializer::struct_variant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2921 | /// Reaches `crate::private::de::content::VariantDeserializer::struct_variant` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2922:17 | 2922 | /// Content::Map case | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2922 | /// `Content::Map` case | ~~~~~~~~~~~~~~ warning: item in documentation is missing backticks --> test_suite/tests/test_annotations.rs:2923:21 | 2923 | /// via FlatMapDeserializer::deserialize_enum | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown help: try | 2923 | /// via `FlatMapDeserializer::deserialize_enum` | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- test_suite/tests/test_annotations.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index d8e4a634..9d301c4c 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -2867,9 +2867,9 @@ mod flatten { ); } - /// Reaches crate::private::de::content::VariantDeserializer::tuple_variant - /// Content::Seq case - /// via FlatMapDeserializer::deserialize_enum + // Reaches crate::private::de::content::VariantDeserializer::tuple_variant + // Content::Seq case + // via FlatMapDeserializer::deserialize_enum #[test] fn tuple() { assert_tokens( @@ -2891,9 +2891,9 @@ mod flatten { ); } - /// Reaches crate::private::de::content::VariantDeserializer::struct_variant - /// Content::Seq case - /// via FlatMapDeserializer::deserialize_enum + // Reaches crate::private::de::content::VariantDeserializer::struct_variant + // Content::Seq case + // via FlatMapDeserializer::deserialize_enum #[test] fn struct_from_seq() { assert_de_tokens( @@ -2918,9 +2918,9 @@ mod flatten { ); } - /// Reaches crate::private::de::content::VariantDeserializer::struct_variant - /// Content::Map case - /// via FlatMapDeserializer::deserialize_enum + // Reaches crate::private::de::content::VariantDeserializer::struct_variant + // Content::Map case + // via FlatMapDeserializer::deserialize_enum #[test] fn struct_from_map() { assert_tokens(