refactor: improve punctuation readability

This commit is contained in:
Lucille L. Blumire 2025-04-17 16:07:13 +01:00
parent 6a9e035d19
commit 2ca0b47169
No known key found for this signature in database
GPG key ID: D168492023622329
4 changed files with 10 additions and 10 deletions

View file

@ -119,7 +119,7 @@ impl<C: JsonRpcClient> BatchVerifier<C> {
);
verified_proofs_count += 1;
} else {
tracing::warn!(batch_no, proof.proved_at, tee_type, "Verification failed!",);
tracing::warn!(batch_no, proof.proved_at, tee_type, "Verification failed!");
}
}

View file

@ -312,13 +312,13 @@ fn init_telemetry(
if config.logging.console {
// Optionally configure JSON logging
if config.logging.json {
subscriber.with(fmt_layer.json()).init()
subscriber.with(fmt_layer.json()).init();
} else {
subscriber.with(fmt_layer.pretty()).init()
subscriber.with(fmt_layer.pretty()).init();
}
} else {
subscriber.init()
};
subscriber.init();
}
Ok(())
}

View file

@ -31,9 +31,9 @@ use std::{
use tracing::trace;
#[allow(missing_docs)]
pub const TEE_TYPE_SGX: u32 = 0x00000000;
pub const TEE_TYPE_SGX: u32 = 0x0000_0000;
#[allow(missing_docs)]
pub const TEE_TYPE_TDX: u32 = 0x00000081;
pub const TEE_TYPE_TDX: u32 = 0x0000_0081;
#[allow(missing_docs)]
pub const BODY_SGX_ENCLAVE_REPORT_TYPE: u16 = 1;

View file

@ -50,8 +50,8 @@ pub struct Author {
unsafe impl Zeroable for Author {}
impl Author {
const HEADER1: [u8; 16] = 0x06000000E10000000000010000000000u128.to_be_bytes();
const HEADER2: [u8; 16] = 0x01010000600000006000000001000000u128.to_be_bytes();
const HEADER1: [u8; 16] = 0x0600_0000_E100_0000_0000_0100_0000_0000u128.to_be_bytes();
const HEADER2: [u8; 16] = 0x0101_0000_6000_0000_6000_0000_0100_0000u128.to_be_bytes();
#[allow(clippy::unreadable_literal)]
/// Creates a new Author from a date and software defined value.
@ -245,7 +245,7 @@ impl Digest for S256Digest {
#[inline]
fn update(&mut self, bytes: &[u8]) {
self.0.update(bytes)
self.0.update(bytes);
}
#[inline]