Skip to content

Commit

Permalink
chore(verifier): fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Jan 20, 2025
1 parent 1696bb9 commit 2c804d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ pub fn normalize_request_compiler_version(
request_compiler_version: &DetailedVersion,
) -> Result<DetailedVersion, tonic::Status> {
let corresponding_known_compiler_version = compilers.iter().find(|&version| {
return version.version() == request_compiler_version.version()
version.version() == request_compiler_version.version()
&& version.date() == request_compiler_version.date()
&& (version
.commit()
.starts_with(request_compiler_version.commit())
|| request_compiler_version
.commit()
.starts_with(version.commit()));
.starts_with(version.commit()))
});
if let Some(compiler_version) = corresponding_known_compiler_version {
Ok(compiler_version.clone())
Expand Down

0 comments on commit 2c804d9

Please sign in to comment.