Skip to content

Commit 93cd3cc

Browse files
committed
Fix clippy
1 parent 29a0fb6 commit 93cd3cc

File tree

1 file changed

+2
-2
lines changed
  • crates/phactory/src/contracts/support

1 file changed

+2
-2
lines changed

crates/phactory/src/contracts/support/keeper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ impl ContractsKeeper {
3737

3838
pub fn get_mut(&mut self, id: &AccountId) -> Option<&mut Contract> {
3939
let boxed = self.contracts.get_mut(id)?;
40-
Some(&mut *boxed)
40+
Some(boxed)
4141
}
4242

4343
pub fn get(&self, id: &AccountId) -> Option<&Contract> {
4444
let boxed = self.contracts.get(id)?;
45-
Some(&*boxed)
45+
Some(boxed)
4646
}
4747

4848
#[allow(clippy::len_without_is_empty)]

0 commit comments

Comments
 (0)