Skip to content

Commit dec0f6b

Browse files
committed
Fix clippy collapsible_if in portable_source_label for CI -D warnings.
1 parent cef2c8f commit dec0f6b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/build/paths.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ pub fn portable_source_label(path: &Path) -> String {
163163
}
164164
}
165165

166-
if let Some(repo) = find_repo_root(&absolute) {
167-
if let Ok(rel) = absolute.strip_prefix(&repo) {
168-
return normalize_path_display(rel);
169-
}
166+
if let Some(repo) = find_repo_root(&absolute)
167+
&& let Ok(rel) = absolute.strip_prefix(&repo)
168+
{
169+
return normalize_path_display(rel);
170170
}
171171

172172
absolute

0 commit comments

Comments
 (0)