Remove unused imports in rustdocs

There is a lint warning about unused imports in the rustdoc examples.

Remove them.
This commit is contained in:
Jamil Lambert, PhD 2025-05-06 10:26:00 +01:00
parent 2d93c8e5d1
commit a852aef4b8
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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");