Skip to content

Commit c4c4f81

Browse files
committed
chore: clippy
1 parent 07e3b27 commit c4c4f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/compilers/src/compilers/solc/compiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ fn version_from_output(output: Output) -> Result<Version> {
615615
let version = stdout
616616
.lines()
617617
.filter(|l| !l.trim().is_empty())
618-
.last()
618+
.next_back()
619619
.ok_or_else(|| SolcError::msg("Version not found in Solc output"))?;
620620
// NOTE: semver doesn't like `+` in g++ in build metadata which is invalid semver
621621
Ok(Version::from_str(&version.trim_start_matches("Version: ").replace(".g++", ".gcc"))?)

0 commit comments

Comments
 (0)