From ae397b228d682631adf70a2fb380501bc0775020 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 8 Dec 2019 22:47:33 +0000 Subject: [PATCH] Do not use explicit #[doc] comments in test This breaks the build on nightly --- schemars/tests/docs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schemars/tests/docs.rs b/schemars/tests/docs.rs index bcbb513..5f5081e 100644 --- a/schemars/tests/docs.rs +++ b/schemars/tests/docs.rs @@ -23,10 +23,10 @@ pub struct MyStruct { #[derive(Debug, JsonSchema)] pub struct MyUnitStruct; -#[doc = " # This is the enum's title "] -#[doc = " This is "] +/// # This is the enum's title +/// This is #[derive(Debug, JsonSchema)] -#[doc = " the enum's description."] +/// the enum's description. pub enum MyEnum { UndocumentedUnit, /// This comment is not included in the generated schema :(