diff --git a/src/lib.rs b/src/lib.rs index 862c016..10d1beb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -81,7 +81,7 @@ //! ``` #![doc(html_root_url = "https://docs.rs/dyn_clone/1.0.14")] -#![no_std] +#![cfg_attr(not(doc), no_std)] #![allow( clippy::missing_panics_doc, clippy::needless_doctest_main,