Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d2ffa892
Commit
d2ffa892
authored
Sep 24, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few unnecessary formatting operations
parent
b4ff6d93
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
53 deletions
+42
-53
Cargo.toml
Cargo.toml
+2
-0
pages.rs
crates/next-api/src/pages.rs
+4
-4
pages_structure.rs
crates/next-core/src/pages_structure.rs
+4
-4
chunking_context.rs
turbopack/crates/turbopack-browser/src/chunking_context.rs
+6
-5
mod.rs
turbopack/crates/turbopack-core/src/resolve/mod.rs
+12
-29
process.rs
turbopack/crates/turbopack-css/src/process.rs
+4
-4
parse.rs
turbopack/crates/turbopack-ecmascript/src/parse.rs
+5
-2
mod.rs
turbopack/crates/turbopack-ecmascript/src/references/mod.rs
+4
-4
chunking_context.rs
turbopack/crates/turbopack-nodejs/src/chunking_context.rs
+1
-1
No files found.
Cargo.toml
View file @
d2ffa892
...
...
@@ -23,6 +23,8 @@ exclude = [
[workspace.lints.clippy]
too_many_arguments
=
"allow"
to_string_in_format_args
=
"warn"
unnecessary_to_owned
=
"warn"
[workspace.lints.rust]
unexpected_cfgs
=
{
level
=
"warn"
,
check-cfg
=
[
...
...
crates/next-api/src/pages.rs
View file @
d2ffa892
...
...
@@ -1585,16 +1585,16 @@ impl Endpoint for PageEndpoint {
let
span
=
{
match
&
this
.ty
{
PageEndpointType
::
Html
=>
{
tracing
::
info_span!
(
"page endpoint HTML"
,
name
=
original_name
.to_string
()
)
tracing
::
info_span!
(
"page endpoint HTML"
,
name
=
%
original_name
)
}
PageEndpointType
::
Data
=>
{
tracing
::
info_span!
(
"page endpoint data"
,
name
=
original_name
.to_string
()
)
tracing
::
info_span!
(
"page endpoint data"
,
name
=
%
original_name
)
}
PageEndpointType
::
Api
=>
{
tracing
::
info_span!
(
"page endpoint API"
,
name
=
original_name
.to_string
()
)
tracing
::
info_span!
(
"page endpoint API"
,
name
=
%
original_name
)
}
PageEndpointType
::
SsrOnly
=>
{
tracing
::
info_span!
(
"page endpoint SSR"
,
name
=
original_name
.to_string
()
)
tracing
::
info_span!
(
"page endpoint SSR"
,
name
=
%
original_name
)
}
}
};
...
...
crates/next-core/src/pages_structure.rs
View file @
d2ffa892
...
...
@@ -328,10 +328,10 @@ async fn get_pages_structure_for_directory(
position
:
u32
,
page_extensions
:
Vc
<
Vec
<
RcStr
>>
,
)
->
Result
<
Vc
<
PagesDirectoryStructure
>>
{
let
span
=
{
let
path
=
project_path
.value_to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"analyze pages structure"
,
name
=
path
)
}
;
let
span
=
tracing
::
info_span!
(
"analyze pages structure"
,
name
=
display
(
project_path
.value_to_string
()
.await
?
)
)
;
async
move
{
let
page_extensions_raw
=
&*
page_extensions
.await
?
;
...
...
turbopack/crates/turbopack-browser/src/chunking_context.rs
View file @
d2ffa892
...
...
@@ -570,7 +570,7 @@ impl ChunkingContext for BrowserChunkingContext {
module_graph
:
Vc
<
ModuleGraph
>
,
availability_info
:
AvailabilityInfo
,
)
->
Result
<
Vc
<
ChunkGroupResult
>>
{
let
span
=
tracing
::
info_span!
(
"chunking"
,
name
=
ident
.to_string
()
.await
?
.to_string
(
));
let
span
=
tracing
::
info_span!
(
"chunking"
,
name
=
display
(
ident
.to_string
()
.await
?
));
async
move
{
let
this
=
self
.await
?
;
let
entries
=
chunk_group
.entries
();
...
...
@@ -637,10 +637,11 @@ impl ChunkingContext for BrowserChunkingContext {
module_graph
:
Vc
<
ModuleGraph
>
,
input_availability_info
:
AvailabilityInfo
,
)
->
Result
<
Vc
<
ChunkGroupResult
>>
{
let
span
=
{
let
ident
=
ident
.to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"chunking"
,
chunking_type
=
"evaluated"
,
ident
=
ident
)
};
let
span
=
tracing
::
info_span!
(
"chunking"
,
ident
=
display
(
ident
.to_string
()
.await
?
.to_string
()),
chunking_type
=
"evaluated"
,
);
async
move
{
let
this
=
self
.await
?
;
let
entries
=
chunk_group
.entries
();
...
...
turbopack/crates/turbopack-core/src/resolve/mod.rs
View file @
d2ffa892
...
...
@@ -1522,26 +1522,13 @@ pub async fn resolve(
request
:
Vc
<
Request
>
,
options
:
Vc
<
ResolveOptions
>
,
)
->
Result
<
Vc
<
ResolveResult
>>
{
resolve_inline
(
lookup_path
,
reference_type
,
request
,
options
)
.await
}
pub
async
fn
resolve_inline
(
lookup_path
:
FileSystemPath
,
reference_type
:
ReferenceType
,
request
:
Vc
<
Request
>
,
options
:
Vc
<
ResolveOptions
>
,
)
->
Result
<
Vc
<
ResolveResult
>>
{
let
span
=
{
let
lookup_path
=
lookup_path
.value_to_string
()
.await
?
.to_string
();
let
request
=
request
.to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"resolving"
,
lookup_path
=
lookup_path
,
name
=
request
,
reference_type
=
display
(
&
reference_type
),
)
};
async
{
let
span
=
tracing
::
info_span!
(
"resolving"
,
name
=
display
(
request
.to_string
()
.await
?
),
lookup_path
=
display
(
&
lookup_path
.path
),
reference_type
=
display
(
&
reference_type
),
);
async
move
{
let
before_plugins_result
=
handle_before_resolve_plugins
(
lookup_path
.clone
(),
reference_type
.clone
(),
...
...
@@ -1740,15 +1727,11 @@ async fn resolve_internal_inline(
request
:
Vc
<
Request
>
,
options
:
Vc
<
ResolveOptions
>
,
)
->
Result
<
Vc
<
ResolveResult
>>
{
let
span
=
{
let
lookup_path
=
lookup_path
.value_to_string
()
.await
?
.to_string
();
let
request
=
request
.to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"internal resolving"
,
lookup_path
=
lookup_path
,
name
=
request
)
};
let
span
=
tracing
::
info_span!
(
"internal resolving"
,
name
=
display
(
request
.to_string
()
.await
?
),
lookup_path
=
display
(
&
lookup_path
.path
),
);
async
move
{
let
options_value
:
&
ResolveOptions
=
&*
options
.await
?
;
...
...
turbopack/crates/turbopack-css/src/process.rs
View file @
d2ffa892
...
...
@@ -363,10 +363,10 @@ pub async fn parse_css(
ty
:
CssModuleAssetType
,
environment
:
Option
<
ResolvedVc
<
Environment
>>
,
)
->
Result
<
Vc
<
ParseCssResult
>>
{
let
span
=
{
let
name
=
source
.ident
()
.to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"parse css"
,
name
=
name
)
}
;
let
span
=
tracing
::
info_span!
(
"parse css"
,
name
=
display
(
source
.ident
()
.to_string
()
.await
?
)
)
;
async
move
{
let
content
=
source
.content
();
let
ident_str
=
&*
source
.ident
()
.to_string
()
.await
?
;
...
...
turbopack/crates/turbopack-ecmascript/src/parse.rs
View file @
d2ffa892
...
...
@@ -174,8 +174,11 @@ pub async fn parse(
ty
:
EcmascriptModuleAssetType
,
transforms
:
ResolvedVc
<
EcmascriptInputTransforms
>
,
)
->
Result
<
Vc
<
ParseResult
>>
{
let
name
=
source
.ident
()
.to_string
()
.await
?
.to_string
();
let
span
=
tracing
::
info_span!
(
"parse ecmascript"
,
name
=
name
,
ty
=
display
(
&
ty
));
let
span
=
tracing
::
info_span!
(
"parse ecmascript"
,
name
=
display
(
source
.ident
()
.to_string
()
.await
?
),
ty
=
display
(
&
ty
)
);
match
parse_internal
(
source
,
ty
,
transforms
)
.instrument
(
span
)
...
...
turbopack/crates/turbopack-ecmascript/src/references/mod.rs
View file @
d2ffa892
...
...
@@ -484,10 +484,10 @@ pub(crate) async fn analyze_ecmascript_module(
module
:
ResolvedVc
<
EcmascriptModuleAsset
>
,
part
:
Option
<
ModulePart
>
,
)
->
Result
<
Vc
<
AnalyzeEcmascriptModuleResult
>>
{
let
span
=
{
let
module
=
module
.ident
()
.to_string
()
.await
?
.to_string
();
tracing
::
info_span!
(
"analyze ecmascript module"
,
name
=
module
)
}
;
let
span
=
tracing
::
info_span!
(
"analyze ecmascript module"
,
name
=
display
(
module
.ident
()
.to_string
()
.await
?
)
)
;
let
result
=
analyze_ecmascript_module_internal
(
module
,
part
)
.instrument
(
span
)
.await
;
...
...
turbopack/crates/turbopack-nodejs/src/chunking_context.rs
View file @
d2ffa892
...
...
@@ -383,7 +383,7 @@ impl ChunkingContext for NodeJsChunkingContext {
module_graph
:
Vc
<
ModuleGraph
>
,
availability_info
:
AvailabilityInfo
,
)
->
Result
<
Vc
<
ChunkGroupResult
>>
{
let
span
=
tracing
::
info_span!
(
"chunking"
,
name
=
ident
.to_string
()
.await
?
.to_string
(
));
let
span
=
tracing
::
info_span!
(
"chunking"
,
name
=
display
(
ident
.to_string
()
.await
?
));
async
move
{
let
modules
=
chunk_group
.entries
();
let
MakeChunkGroupResult
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment