remove redundant condition

This commit is contained in:
Charles Hall 2025-03-21 16:48:56 -07:00
parent 799594cd1f
commit d6475eee6d
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -570,5 +570,5 @@ where
/// Returns `true` if two paths overlap.
fn overlap(a: &Path, b: &Path) -> bool {
a == b || a.starts_with(b) || b.starts_with(a)
a.starts_with(b) || b.starts_with(a)
}