Run cargo fmt/fix

This commit is contained in:
Cameron
2025-12-23 22:07:50 -05:00
parent 3a64b30621
commit 6dbac6f22f
8 changed files with 43 additions and 52 deletions

View File

@@ -110,11 +110,10 @@ fn find_file_with_alternative_extension(
let test_path = parent.join(format!("{}.{}", stem, ext));
if test_path.exists() {
// Convert back to relative path
if let Ok(rel) = test_path.strip_prefix(base_path) {
if let Some(rel_str) = rel.to_str() {
if let Ok(rel) = test_path.strip_prefix(base_path)
&& let Some(rel_str) = rel.to_str() {
return Some(rel_str.to_string());
}
}
}
}