Address clippy issues (#409)

This commit is contained in:
bmc-msft
2021-01-05 10:41:46 -05:00
committed by GitHub
parent 37f06bb324
commit 7e56efa6a8
22 changed files with 52 additions and 54 deletions

View File

@ -53,8 +53,8 @@ fn main() -> Result<(), Box<dyn Error>> {
let sha = run_cmd(&["git", "rev-parse", "HEAD"])?;
let hardcode_version = env::var("ONEFUZZ_SET_VERSION");
if hardcode_version.is_ok() {
print_values(hardcode_version.unwrap().as_ref(), &sha);
if let Ok(hardcode_version) = &hardcode_version {
print_values(hardcode_version, &sha);
return Ok(());
}