Skip to content

Commit 5afd7c1

Browse files
committed
clippy
1 parent ceac709 commit 5afd7c1

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

crates/movy-sui/src/cheats/backend.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
use std::{
2-
cell::UnsafeCell,
3-
ops::{Deref, DerefMut},
4-
sync::{Arc, Mutex},
5-
};
6-
7-
use crate::database::cache::{CachedSnapshot, CachedStore};
1+
use std::{cell::UnsafeCell, sync::Arc};
82

93
// CheatBackend is a global backend that a Move VM globally holds
104
pub struct CheatBackendInner<T> {
@@ -13,7 +7,7 @@ pub struct CheatBackendInner<T> {
137

148
impl<T> CheatBackendInner<T> {
159
pub fn new(db: T) -> Self {
16-
Self { db: db }
10+
Self { db }
1711
}
1812

1913
// Must be called before every ptb execution

crates/movy-sui/src/cheats/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use std::{
2-
cell::RefCell,
3-
str::FromStr,
4-
sync::{Arc, LazyLock, Mutex},
5-
};
1+
use std::{str::FromStr, sync::LazyLock};
62

73
use move_core_types::account_address::AccountAddress;
84
use move_vm_runtime::native_functions::NativeFunctionTable;

crates/movy-sui/src/cheats/scenario.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use move_vm_runtime::native_functions::NativeContext;
66
use move_vm_types::{
77
loaded_data::runtime_types::Type, natives::function::NativeResult, values::Value,
88
};
9-
use sui_types::storage::ObjectStore;
109

1110
use crate::cheats::backend::CheatBackend;
1211

@@ -19,8 +18,8 @@ use crate::cheats::backend::CheatBackend;
1918
pub fn end_transaction<T>(
2019
backend: &CheatBackend<T>,
2120
_ctx: &NativeContext,
22-
tys: Vec<Type>,
23-
vals: VecDeque<Value>,
21+
_tys: Vec<Type>,
22+
_vals: VecDeque<Value>,
2423
) -> PartialVMResult<NativeResult> {
2524
backend.inner_mut().end_transaction();
2625
PartialVMResult::Ok(NativeResult::ok(InternalGas::zero(), vec![].into()))

0 commit comments

Comments
 (0)