fix Rust 1.86.0 clippy (#273)

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
xermicus
2025-04-03 15:03:49 +02:00
committed by GitHub
parent 87c1d7a8be
commit 313c033261
@@ -196,7 +196,7 @@ impl Source {
_ => None,
},
)
.last()
.next_back()
.ok_or_else(|| anyhow::anyhow!("The last contract not found in the AST"))
}
}