From 441aac0a087254fdd56fc744b937f9d16d59583f Mon Sep 17 00:00:00 2001 From: Chris Hyunhum Cho Date: Mon, 26 Aug 2024 04:44:01 -0700 Subject: [PATCH] fix: vec! macro enabled only for test module --- base58/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base58/src/lib.rs b/base58/src/lib.rs index 881d5d0f6..ffda3179e 100644 --- a/base58/src/lib.rs +++ b/base58/src/lib.rs @@ -18,7 +18,6 @@ #![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134 #![allow(clippy::manual_range_contains)] // More readable than clippy's format. -#[macro_use] extern crate alloc; #[cfg(bench)] @@ -248,6 +247,7 @@ where #[cfg(test)] mod tests { + use alloc::vec; use hex::test_hex_unwrap as hex; use super::*;