Skip to content

Commit

Permalink
docs: Use the docsrs cfg flag
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Nov 19, 2024
1 parent 6384929 commit 3e0e8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![cfg_attr(_doc, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

use core::{
fmt,
Expand Down

0 comments on commit 3e0e8c1

Please sign in to comment.