Skip to content

Commit

Permalink
Feature guard write_err import
Browse files Browse the repository at this point in the history
We only use the `write_err` macro when the "alloc" feature is enabled,
the import statement should be feature guarded.

Clears a clippy warning.
  • Loading branch information
tcharding committed Oct 18, 2023
1 parent fb3ff2d commit c16b68a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ pub mod segwit;
use alloc::{string::String, vec::Vec};
use core::fmt;

#[cfg(feature = "alloc")]
use crate::error::write_err;
#[cfg(doc)]
use crate::primitives::decode::CheckedHrpstring;
Expand Down

0 comments on commit c16b68a

Please sign in to comment.