Skip to content

Commit 5466cb2

Browse files
committed
Fix unused import clippy lint
One import is unused with no-default-features. Feature gate it.
1 parent 99544ff commit 5466cb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

consensus_encoding/tests/encode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#[cfg(feature = "std")]
66
use std::io::{Cursor, Write};
77

8-
use bitcoin_consensus_encoding::{ArrayEncoder, BytesEncoder, Encodable, Encoder};
8+
use bitcoin_consensus_encoding::{ArrayEncoder, BytesEncoder, Encoder};
9+
#[cfg(feature = "alloc")]
10+
use bitcoin_consensus_encoding::{Encodable};
911

1012
// Simple test type that implements Encodable.
1113
#[cfg(feature = "alloc")]

0 commit comments

Comments
 (0)