Skip to content

Commit 69632d3

Browse files
committed
Fix Map::set owned args and remove unused String import in test
1 parent 80cfe70 commit 69632d3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

contracts/invoice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ impl InvoiceContract {
930930
for status in statuses {
931931
let key = String::from_str(&env, status.as_str());
932932
let value = read_status_count(&env, status);
933-
counts.set(&key, &value);
933+
counts.set(key, value);
934934
}
935935
counts
936936
}

contracts/invoice/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use proptest::test_runner::{Config as ProptestConfig, TestRunner};
55
use soroban_sdk::{
66
contract, contractimpl, contracttype,
77
testutils::{Address as _, Events as _, Ledger},
8-
vec, Address, BytesN, Env, IntoVal, String, Symbol,
8+
vec, Address, BytesN, Env, IntoVal, Symbol,
99
};
1010

1111
use crate::{InvoiceContract, InvoiceContractClient, InvoiceStatus};

0 commit comments

Comments
 (0)