style: apply nightly cargo fmt

This commit is contained in:
moudyellaz 2026-03-24 12:44:19 +01:00
parent a838a45a2c
commit 3ba2441b6e
2 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,10 @@
use borsh::{BorshDeserialize, BorshSerialize};
use log::warn;
use nssa::{AccountId, V03State};
use nssa_core::program::Timestamp;
use serde::{Deserialize, Serialize};
use crate::{HashType, block::BlockId};
use nssa_core::program::Timestamp;
#[derive(Debug, Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize)]
pub enum NSSATransaction {

View File

@ -180,7 +180,8 @@ impl ValidityWindow {
}
}
/// Valid for block IDs in the range [from, to) and timestamps in [from_timestamp, to_timestamp).
/// Valid for block IDs in the range [from, to) and timestamps in [from_timestamp,
/// to_timestamp).
#[must_use]
pub fn is_valid_for(&self, block_id: BlockId, timestamp_ms: Timestamp) -> bool {
self.from.is_none_or(|start| block_id >= start)