Fix clippy warning

This commit is contained in:
Damien Elmes 2022-11-28 14:42:03 +10:00
parent 29adf9eee0
commit 3b8a7ab132

View file

@ -54,7 +54,7 @@ fn locate_git_head() -> Option<BuildInput> {
.filter_map(|p| { .filter_map(|p| {
let head = p.unwrap().path().join("HEAD"); let head = p.unwrap().path().join("HEAD");
if head.exists() { if head.exists() {
Some(head.as_str().replace(':', "$:").to_string()) Some(head.as_str().replace(':', "$:"))
} else { } else {
None None
} }