From 29207e3185c7f9b0f1e0cf2fb476c67f37b2d2b6 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Thu, 10 Jun 2021 10:55:19 -0400 Subject: [PATCH] Fix build on nightly --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e377a38..8441fe7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ -#![ cfg_attr( nightly, feature( external_doc, doc_cfg ) ) ] -#![ cfg_attr( nightly, doc ( include = "../README.md" ) ) ] +#![ cfg_attr( nightly, feature( doc_cfg ) ) ] +#![ cfg_attr( nightly, cfg_attr( nightly, doc = include_str!("../README.md") ) )] #![ doc = "" ] // empty doc line to handle missing doc warning when the feature is missing. #![ doc ( html_root_url = "https://docs.rs/pharos" ) ]