Skip to content

Commit

Permalink
Fix benchmarks compilation (#2941)
Browse files Browse the repository at this point in the history
  • Loading branch information
deuszx authored Nov 22, 2024
1 parent 2a97cdc commit 860dfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linera-chain/src/data_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ pub struct LiteVote {

impl LiteVote {
/// Returns the full vote, with the value, if it matches.
#[cfg(with_testing)]
#[cfg(any(feature = "benchmark", with_testing))]
pub fn with_value<T>(self, value: Hashed<T>) -> Option<Vote<T>> {
if self.value.value_hash != value.hash() {
return None;
Expand Down

0 comments on commit 860dfe3

Please sign in to comment.