mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-22 08:56:58 -06:00
clippy lint
This commit is contained in:
parent
a092463f77
commit
fd4d42c6a2
@ -63,8 +63,8 @@ fn get_build_hash<Q: AsRef<Path>>(output_path: Q) -> Option<Vec<u8>> {
|
||||
let lines = std::io::BufReader::new(std::fs::File::open(output_path).ok()?).lines();
|
||||
for l in lines {
|
||||
let l = l.unwrap();
|
||||
if l.starts_with("//BUILDHASH:") {
|
||||
return Some(hex::decode(&l[12..]).unwrap());
|
||||
if let Some(rest) = l.strip_prefix("//BUILDHASH:") {
|
||||
return Some(hex::decode(rest).unwrap());
|
||||
}
|
||||
}
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user