Skip to content

Commit a8de760

Browse files
committed
clippy
1 parent 8ca427d commit a8de760

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tests/soroban.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ where
2525
{
2626
let (wasm_blob, ns) = build_wasm(src);
2727

28-
let env =
29-
SorobanEnv::new_with_contract(wasm_blob, configure_env).insert_diagnostics(ns.diagnostics);
30-
31-
env
28+
SorobanEnv::new_with_contract(wasm_blob, configure_env).insert_diagnostics(ns.diagnostics)
3229
}
3330

3431
fn build_wasm(src: &str) -> (Vec<u8>, Namespace) {

tests/soroban_testcases/ttl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn ttl_basic() {
3838
let addr = runtime.contracts.last().unwrap();
3939

4040
// initial TTL
41-
runtime.env.as_contract(&addr, || {
41+
runtime.env.as_contract(addr, || {
4242
// There is only one key in the persistent storage
4343
let key = runtime
4444
.env
@@ -52,9 +52,9 @@ fn ttl_basic() {
5252
});
5353

5454
// Extend persistent entry TTL to 5000 ledgers - now it is 5000.
55-
runtime.invoke_contract(&addr, "extend_ttl", vec![]);
55+
runtime.invoke_contract(addr, "extend_ttl", vec![]);
5656

57-
runtime.env.as_contract(&addr, || {
57+
runtime.env.as_contract(addr, || {
5858
// There is only one key in the persistent storage
5959
let key = runtime
6060
.env

0 commit comments

Comments
 (0)