From a81f7f0c6e17ace9868fb3d3b2ad609ecceb520d Mon Sep 17 00:00:00 2001 From: sh-cha Date: Fri, 1 Nov 2024 16:39:51 +0900 Subject: [PATCH] fmt --- crates/storage/src/code_storage.rs | 12 +++++------- crates/storage/src/script_cache.rs | 5 +---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/crates/storage/src/code_storage.rs b/crates/storage/src/code_storage.rs index 36c8588f..2f512ae8 100644 --- a/crates/storage/src/code_storage.rs +++ b/crates/storage/src/code_storage.rs @@ -125,13 +125,11 @@ impl CodeStorage for InitiaCodeStorage { (code_wrapper.code.deserialized().clone(), code_wrapper.size) } - None => { - get_size(move || { - self.runtime_environment() - .deserialize_into_script(serialized_script) - .map(Arc::new) - })? - } + None => get_size(move || { + self.runtime_environment() + .deserialize_into_script(serialized_script) + .map(Arc::new) + })?, }; // Locally verify the script. diff --git a/crates/storage/src/script_cache.rs b/crates/storage/src/script_cache.rs index 61b7b08a..9e0c0e60 100644 --- a/crates/storage/src/script_cache.rs +++ b/crates/storage/src/script_cache.rs @@ -1,10 +1,7 @@ use std::{hash::RandomState, num::NonZeroUsize, sync::Arc}; use clru::{CLruCache, CLruCacheConfig}; -use move_binary_format::{ - errors::VMResult, - file_format::CompiledScript, -}; +use move_binary_format::{errors::VMResult, file_format::CompiledScript}; use move_vm_runtime::Script; use move_vm_types::code::Code; use parking_lot::Mutex;