Skip to content

Commit 313c033

Browse files
authored
fix Rust 1.86.0 clippy (#273)
Signed-off-by: Cyrill Leutwiler <[email protected]>
1 parent 87c1d7a commit 313c033

File tree

1 file changed

+1
-1
lines changed
  • crates/solc-json-interface/src/standard_json/output

1 file changed

+1
-1
lines changed

crates/solc-json-interface/src/standard_json/output/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl Source {
196196
_ => None,
197197
},
198198
)
199-
.last()
199+
.next_back()
200200
.ok_or_else(|| anyhow::anyhow!("The last contract not found in the AST"))
201201
}
202202
}

0 commit comments

Comments
 (0)