Skip to content

Commit 0ee99f5

Browse files
committed
Clippy check historical masp feature
1 parent 05ec0f0 commit 0ee99f5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,15 @@ check-crates:
124124

125125
clippy-wasm = $(cargo) +$(nightly) clippy --manifest-path $(wasm)/Cargo.toml --all-targets -- -D warnings
126126

127-
# Need a separate command for benchmarks to prevent the "testing" feature flag from being activated
127+
# Need a separate command for benchmarks to prevent the "testing"
128+
# feature flag from being activated. Another special case is the
129+
# "historic" feature flag present in `namada_shielded_token`.
128130
clippy:
129131
$(cargo) +$(nightly) clippy $(jobs) --all-targets --workspace --exclude namada_benchmarks -- -D warnings && \
132+
$(cargo) +$(nightly) clippy $(jobs) \
133+
--package namada_shielded_token \
134+
--features historic \
135+
-- -D warnings && \
130136
$(cargo) +$(nightly) clippy $(jobs) --all-targets --package namada_benchmarks -- -D warnings && \
131137
make -C $(wasms) clippy && \
132138
make -C $(wasms_for_tests) clippy

crates/shielded_token/src/masp/shielded_sync/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::future::Future;
44
use std::ops::ControlFlow;
55

66
#[cfg(not(target_family = "wasm"))]
7+
#[cfg(feature = "std")]
78
use eyre::eyre;
89
use masp_primitives::sapling::ViewingKey;
910
use masp_primitives::sapling::note_encryption::{

0 commit comments

Comments
 (0)