Skip to content

Commit c16b68a

Browse files
committed
Feature guard write_err import
We only use the `write_err` macro when the "alloc" feature is enabled, the import statement should be feature guarded. Clears a clippy warning.
1 parent fb3ff2d commit c16b68a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pub mod segwit;
142142
use alloc::{string::String, vec::Vec};
143143
use core::fmt;
144144

145+
#[cfg(feature = "alloc")]
145146
use crate::error::write_err;
146147
#[cfg(doc)]
147148
use crate::primitives::decode::CheckedHrpstring;

0 commit comments

Comments
 (0)