Skip to content

Commit 7244341

Browse files
committed
Fix borrowing
1 parent 541d3ce commit 7244341

File tree

2 files changed

+106
-76
lines changed

2 files changed

+106
-76
lines changed

packages/check/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ fn check_contract(
9595
let mut wasm = Vec::<u8>::new();
9696
file.read_to_end(&mut wasm)?;
9797

98-
let logs = Logs::new();
98+
let mut logs = Logs::new();
9999
// Check wasm
100-
let res = check_wasm_with_logs(&wasm, available_capabilities, logs.clone());
101-
for line in logs.iter() {
100+
let res = check_wasm_with_logs(&wasm, available_capabilities, &mut logs);
101+
for line in logs {
102102
eprintln!("{}", line);
103103
}
104104
res?;

0 commit comments

Comments
 (0)