fix: more lints fix

This commit is contained in:
Oleksandr Pravdyvyi 2025-07-18 14:07:06 +03:00
parent 7d11c95be8
commit 9646152550
No known key found for this signature in database
GPG Key ID: 9F8955C63C443871
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ impl NodeChainStore {
self.block_store.put_block_at_id(block)?;
//Snapshot
if block_id % self.node_config.shapshot_frequency_in_blocks == 0 {
if block_id.is_multiple_of(self.node_config.shapshot_frequency_in_blocks) {
//Serializing all important data structures
//If we fail serialization, it is not the reason to stop running

View File

@ -41,7 +41,7 @@ pub mod sequencer_client;
fn vec_u8_to_vec_u64(bytes: Vec<u8>) -> Vec<u64> {
// Pad with zeros to make sure it's a multiple of 8
let mut padded = bytes.clone();
while padded.len() % 8 != 0 {
while !padded.len().is_multiple_of(8) {
padded.push(0);
}