Skip to content

Commit fad8a4a

Browse files
committed
Fix virus contract
1 parent 9e09ffc commit fad8a4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/virus/src/contract.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ pub fn execute_spread(
6060

6161
attributes.push(Attribute::new(format!("path{i}"), path.clone()));
6262

63+
// clippy produces a false positive here, see https://github.com/rust-lang/rust-clippy/issues/9841
64+
#[allow(clippy::explicit_auto_deref)]
6365
let address = deps
6466
.api
65-
.addr_humanize(&instantiate2_address(&checksum, &creator, &salt)?)?;
67+
.addr_humanize(&instantiate2_address(&*checksum, &creator, &salt)?)?;
6668
attributes.push(Attribute::new(
6769
format!("predicted_address{i}"),
6870
address.clone(),

0 commit comments

Comments
 (0)