File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
turbopack/crates/turbopack-core/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1698,12 +1698,11 @@ enum SingleModuleGraphBuilderNode {
1698
1698
1699
1699
impl SingleModuleGraphBuilderNode {
1700
1700
async fn new_module ( emit_spans : bool , module : ResolvedVc < Box < dyn Module > > ) -> Result < Self > {
1701
- let ident = module. ident ( ) ;
1702
1701
Ok ( Self :: Module {
1703
1702
module,
1704
1703
ident : if emit_spans {
1705
1704
// INVALIDATION: we don't need to invalidate when the span name changes
1706
- Some ( ident . to_string ( ) . untracked ( ) . await ?)
1705
+ Some ( module . ident_string ( ) . untracked ( ) . await ?)
1707
1706
} else {
1708
1707
None
1709
1708
} ,
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ pub trait OutputAsset: Asset {
20
20
/// The identifier of the [OutputAsset] as string. It's expected to be unique and
21
21
/// capture all properties of the [OutputAsset].
22
22
#[ turbo_tasks:: function]
23
- async fn path_string ( self : Vc < Self > ) -> Result < Vc < RcStr > > {
24
- Ok ( self . path ( ) . resolve ( ) . await ? . to_string ( ) )
23
+ fn path_string ( self : Vc < Self > ) -> Vc < RcStr > {
24
+ self . path ( ) . to_string ( )
25
25
}
26
26
27
27
/// Other references [OutputAsset]s from this [OutputAsset].
You can’t perform that action at this time.
0 commit comments