Skip to content

Commit e4c61b5

Browse files
committed
Merge #146: Feature guard write_err import
c16b68a Feature guard write_err import (Tobin C. Harding) Pull request description: We only use the `write_err` macro when the "alloc" feature is enabled, the import statement should be feature guarded. Clears a clippy warning. ACKs for top commit: apoelstra: ACK c16b68a Tree-SHA512: b274697f24abc0d3376f29e7ba8162e959b3ef4c449e061e662e94d06c94873116f7db96dc1fb702b440d9fc3d2bfb93e291ea5d631c9a5038cb7cea76913eef
2 parents 8de5f31 + c16b68a commit e4c61b5

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)