Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 23, 2023
1 parent 0afcbc2 commit b47a72f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next-swc/crates/next-core/src/app_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ use crate::{
fn pathname_to_segments(pathname: &str) -> (Vec<BaseSegment>, Option<FinalSegment>) {
let mut segments = Vec::new();
for segment in pathname.split('/') {
if segment.is_empty() {
// ignore
} else if segment.starts_with('(') && segment.ends_with(')') || segment.starts_with('@') {
if segment.is_empty()
|| (segment.starts_with('(') && segment.ends_with(')') || segment.starts_with('@'))
{
// ignore
} else if segment.starts_with("[[...") && segment.ends_with("]]")
|| segment.starts_with("[...") && segment.ends_with(']')
Expand All @@ -119,7 +119,7 @@ fn pathname_to_segments(pathname: &str) -> (Vec<BaseSegment>, Option<FinalSegmen
segments.push(BaseSegment::Static(segment.to_string()));
}
}
return (segments, None);
(segments, None)
}

#[turbo_tasks::function]
Expand Down

0 comments on commit b47a72f

Please sign in to comment.