Change `#[cfg(docsrs)]` to `#[cfg(doc)]` on `use`

The additional `use` items were added to improve the style of
documentation. Because they were only used for doc they were `cfg`ed.
But because this is independent from being built by `docs.rs` the `cfg`
should've been `doc` not `docsrs`.

IOW `docsrs` means roughly `all(doc, nightly)` and the added items are
unrelated to `nightly`.
This commit is contained in:
Martin Habovstiak 2022-12-23 22:50:18 +01:00
parent 0f98e179c3
commit 8d58ee2ca3
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ use crate::prelude::*;
use crate::parse::{self, impl_parse_str_through_int};
use crate::string::FromHexStr;
#[cfg(docsrs)]
#[cfg(doc)]
use crate::absolute;
/// The Threshold for deciding whether a lock time value is a height or a time (see [Bitcoin Core]).

View File

@ -13,7 +13,7 @@ use core::convert::TryFrom;
#[cfg(all(test, mutate))]
use mutagen::mutate;
#[cfg(docsrs)]
#[cfg(doc)]
use crate::relative;
/// A relative lock time value, representing either a block height or time (512 second intervals).