Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Nov 1, 2024
1 parent 24501f7 commit a81f7f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 5 additions & 7 deletions crates/storage/src/code_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,11 @@ impl<M: ModuleStorage> CodeStorage for InitiaCodeStorage<M> {

(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.
Expand Down
5 changes: 1 addition & 4 deletions crates/storage/src/script_cache.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit a81f7f0

Please sign in to comment.