From 7c1f8f4d6813f1dc57184adf0998da9c7a0eeb96 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Thu, 2 Apr 2026 21:23:30 -0300 Subject: [PATCH] clippy --- programs/clock/core/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/programs/clock/core/src/lib.rs b/programs/clock/core/src/lib.rs index 33a08c50..1a32f0f9 100644 --- a/programs/clock/core/src/lib.rs +++ b/programs/clock/core/src/lib.rs @@ -2,9 +2,6 @@ use nssa_core::{Timestamp, account::AccountId}; -/// The instruction type for the Clock Program. The sequencer passes the current block timestamp. -pub type Instruction = Timestamp; - pub const CLOCK_01_PROGRAM_ACCOUNT_ID: AccountId = AccountId::new(*b"/LEZ/ClockProgramAccount/0000001"); @@ -14,13 +11,17 @@ pub const CLOCK_10_PROGRAM_ACCOUNT_ID: AccountId = pub const CLOCK_50_PROGRAM_ACCOUNT_ID: AccountId = AccountId::new(*b"/LEZ/ClockProgramAccount/0000050"); -/// All clock program account ID int the order expected by the clock program +/// All clock program account ID int the order expected by the clock program. pub const CLOCK_PROGRAM_ACCOUNT_IDS: [AccountId; 3] = [ CLOCK_01_PROGRAM_ACCOUNT_ID, CLOCK_10_PROGRAM_ACCOUNT_ID, CLOCK_50_PROGRAM_ACCOUNT_ID, ]; +/// The instruction type for the Clock Program. The sequencer passes the current block timestamp. +pub type Instruction = Timestamp; + + /// The data stored in a clock account: `[block_id: u64 LE | timestamp: u64 LE]`. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct ClockAccountData {