Remove unused imports in rustdocs
There is a lint warning about unused imports in the rustdoc examples. Remove them.
This commit is contained in:
parent
2d93c8e5d1
commit
a852aef4b8
|
@ -225,7 +225,6 @@ impl LockTime {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use bitcoin_primitives::locktime::relative::HeightInterval;
|
|
||||||
/// # use bitcoin_primitives::relative::Time;
|
/// # use bitcoin_primitives::relative::Time;
|
||||||
/// # use units::mtp_height::MtpAndHeight;
|
/// # use units::mtp_height::MtpAndHeight;
|
||||||
/// # use bitcoin_primitives::BlockHeight;
|
/// # use bitcoin_primitives::BlockHeight;
|
||||||
|
|
|
@ -53,7 +53,7 @@ use crate::{Amount, FeeRate, SignedAmount, Weight};
|
||||||
/// In some instances one may wish to differentiate div-by-zero from overflow.
|
/// In some instances one may wish to differentiate div-by-zero from overflow.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # use bitcoin_units::{amount, Amount, FeeRate, NumOpResult, NumOpError};
|
/// # use bitcoin_units::{Amount, FeeRate, NumOpResult, NumOpError};
|
||||||
/// // Two amounts that will be added to calculate the max fee.
|
/// // Two amounts that will be added to calculate the max fee.
|
||||||
/// let a = Amount::from_sat(123).expect("valid amount");
|
/// let a = Amount::from_sat(123).expect("valid amount");
|
||||||
/// let b = Amount::from_sat(467).expect("valid amount");
|
/// let b = Amount::from_sat(467).expect("valid amount");
|
||||||
|
|
Loading…
Reference in New Issue