diff --git a/src/lib.rs b/src/lib.rs index 1f7989b2a..5afedd265 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;