From 3e0e8c11bc1cdcd441c2d53bef750fff1c4f9a7b Mon Sep 17 00:00:00 2001 From: GrayJack Date: Tue, 19 Nov 2024 18:41:06 -0300 Subject: [PATCH] docs: Use the `docsrs` cfg flag --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ef1a637..d56223b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "_doc"] +rustdoc-args = ["--cfg", "docsrs"] [dependencies] num-traits = { version = "0.2.19", default-features = false } diff --git a/src/lib.rs b/src/lib.rs index b61353a..a3a4ec9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ #![no_std] -#![cfg_attr(_doc, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] use core::{ fmt,