From 71a04ad4e24e1c7556e69b32441c9b6141951785 Mon Sep 17 00:00:00 2001 From: "Lucille L. Blumire" Date: Thu, 17 Apr 2025 15:40:54 +0100 Subject: [PATCH] refactor: bring items to top level of files --- bin/rtmr-calc/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/rtmr-calc/src/main.rs b/bin/rtmr-calc/src/main.rs index 7a6cef5..a3ab72c 100644 --- a/bin/rtmr-calc/src/main.rs +++ b/bin/rtmr-calc/src/main.rs @@ -65,6 +65,8 @@ impl Display for Rtmr { } } +const CHUNK_SIZE: u64 = 1024 * 128; + fn main() -> Result<()> { let args = Arguments::parse(); tracing::subscriber::set_global_default(setup_logging( @@ -182,7 +184,6 @@ fn main() -> Result<()> { let mut hasher = Sha384::new(); - const CHUNK_SIZE: u64 = 1024 * 128; loop { if start >= end { break;