Skip to content

Commit

Permalink
fix: testing feature flag in pox-locking
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai committed Jan 10, 2025
1 parent 4c6adcf commit 5b96659
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions libsigner/src/v0/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ pub struct PeerInfo {
}

impl StacksMessageCodec for PeerInfo {
#[allow(clippy::needless_as_bytes)] // as_bytes isn't necessary, but verbosity is preferable in the codec impls
fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError> {
write_next(fd, &self.burn_block_height)?;
write_next(fd, self.stacks_tip_consensus_hash.as_bytes())?;
Expand Down
4 changes: 2 additions & 2 deletions pox-locking/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ use clarity::vm::costs::LimitedCostTracker;
use clarity::vm::errors::Error as ClarityError;
use clarity::vm::types::{PrincipalData, QualifiedContractIdentifier, ResponseData, TupleData};
use clarity::vm::Value;
#[cfg(test)]
#[cfg(any(test, feature = "testing"))]
use slog::slog_debug;
use slog::slog_error;
#[cfg(test)]
#[cfg(any(test, feature = "testing"))]
use stacks_common::debug;
use stacks_common::types::StacksEpochId;
use stacks_common::{error, test_debug};
Expand Down
4 changes: 2 additions & 2 deletions pox-locking/src/events_24.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ use clarity::vm::contexts::GlobalContext;
use clarity::vm::errors::Error as ClarityError;
use clarity::vm::types::{PrincipalData, QualifiedContractIdentifier, TupleData};
use clarity::vm::Value;
#[cfg(test)]
#[cfg(any(test, feature = "testing"))]
use slog::slog_debug;
use slog::slog_error;
#[cfg(test)]
#[cfg(any(test, feature = "testing"))]
use stacks_common::debug;
use stacks_common::{error, test_debug};

Expand Down

0 comments on commit 5b96659

Please sign in to comment.