From c4b59c50c51fef8a197f97399cddceea61b860c6 Mon Sep 17 00:00:00 2001 From: James Liu Date: Sat, 13 Apr 2024 23:21:46 -0700 Subject: [PATCH] Make the doc_auto_cfg a crate-level attribute. Co-authored-by: John Nunley --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4960549..ce6b271 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,8 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png" )] -#[cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + use std::fmt; use std::marker::PhantomData; use std::panic::{RefUnwindSafe, UnwindSafe};