Skip to content

Commit f183d6c

Browse files
committed
clippy
1 parent b1af2fe commit f183d6c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

crates/next-core/src/next_edge/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub async fn get_edge_resolve_options_context(
123123
)];
124124
if matches!(
125125
ty,
126-
ServerContextType::Pages { .. }
126+
ServerContextType::Pages
127127
| ServerContextType::AppSSR { .. }
128128
| ServerContextType::AppRSC { .. }
129129
) {

crates/next-core/src/next_import_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ async fn insert_next_server_special_aliases(
742742
// the error which throws a runtime error. This works with in combination of
743743
// build-time error as well, refer https://github.com/vercel/next.js/blob/0060de1c4905593ea875fa7250d4b5d5ce10897d/packages/next-swc/crates/next-core/src/next_server/context.rs#L103
744744
match &ty {
745-
ServerContextType::Pages { .. } => {
745+
ServerContextType::Pages => {
746746
insert_exact_alias_map(
747747
import_map,
748748
project_path.clone(),
@@ -754,7 +754,7 @@ async fn insert_next_server_special_aliases(
754754
},
755755
);
756756
}
757-
ServerContextType::PagesApi { .. }
757+
ServerContextType::PagesApi
758758
| ServerContextType::AppRSC { .. }
759759
| ServerContextType::AppRoute { .. }
760760
| ServerContextType::Middleware { .. }

crates/next-core/src/next_root_params/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl NextRootParamsMapper {
111111
})?;
112112
Self::valid_import_map_result(collected_root_params)
113113
}
114-
ServerContextType::PagesApi { .. }
114+
ServerContextType::PagesApi
115115
| ServerContextType::Instrumentation { .. }
116116
| ServerContextType::Middleware { .. } => {
117117
// There's no sensible way to use root params outside of the app

crates/next-core/src/next_server/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ pub async fn get_server_module_options_context(
638638

639639
let url_rewrite_behavior = Some(
640640
//https://github.com/vercel/next.js/blob/bbb730e5ef10115ed76434f250379f6f53efe998/packages/next/src/build/webpack-config.ts#L1384
641-
if let ServerContextType::PagesApi { .. } = ty {
641+
if let ServerContextType::PagesApi = ty {
642642
UrlRewriteBehavior::Full
643643
} else {
644644
UrlRewriteBehavior::Relative

crates/next-core/src/next_server/transforms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub async fn get_next_server_internal_transforms_rules(
216216
// Apply next/font transforms to foreign code
217217
rules.push(get_next_font_transform_rule(mdx_rs));
218218
}
219-
ServerContextType::PagesApi { .. } => {}
219+
ServerContextType::PagesApi => {}
220220
ServerContextType::AppSSR { .. } => {
221221
rules.push(get_next_font_transform_rule(mdx_rs));
222222
}

0 commit comments

Comments
 (0)