Skip to content

Commit

Permalink
Fix merged clippy warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Klimenty Tsoutsman <[email protected]>
  • Loading branch information
tsoutsman committed Oct 28, 2023
1 parent 9ea39cf commit 254ba65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/path/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ impl Path {
}
(None, _) => comps.push(Component::ParentDir),
(Some(a), Some(b)) if comps.is_empty() && a == b => (),
(Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
(Some(_), Some(b)) if b == Component::ParentDir => return None,
(Some(a), Some(Component::CurDir)) => comps.push(a),
(Some(_), Some(Component::ParentDir)) => return None,
(Some(a), Some(_)) => {
comps.push(Component::ParentDir);
for _ in itb {
Expand Down

0 comments on commit 254ba65

Please sign in to comment.