Skip to content

Commit 0408f3d

Browse files
committed
Fix unused clippy lint
The `opcodes` module is only used by script which is feature gated on `alloc`. This causes an unused lint error on `no-default-features`. Feature gate the whole module on `alloc`.
1 parent 67eea0b commit 0408f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

primitives/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub mod _export {
4141
}
4242

4343
mod hash_types;
44+
#[cfg(feature = "alloc")]
4445
mod opcodes;
4546

4647
pub mod block;

0 commit comments

Comments
 (0)