Skip to content

Commit 2413f40

Browse files
committed
resolve review feedback
1 parent afb61ee commit 2413f40

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

turbopack/crates/turbopack-core/src/ident.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use turbo_tasks_hash::{DeterministicHash, Xxh3Hash64Hasher, encode_hex, hash_xxh
1010

1111
use crate::resolve::ModulePart;
1212

13-
#[turbo_tasks::value(serialization = "auto_for_input")]
13+
#[turbo_tasks::value]
1414
#[derive(Clone, Debug, Hash, TaskInput)]
1515
pub struct AssetIdent {
1616
/// The primary path of the asset

turbopack/crates/turbopack-ecmascript/src/side_effect_optimization/facade/module.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,8 @@ impl EcmascriptModuleFacadeModule {
146146
#[turbo_tasks::value_impl]
147147
impl Module for EcmascriptModuleFacadeModule {
148148
#[turbo_tasks::function]
149-
async fn ident(&self) -> Result<Vc<AssetIdent>> {
150-
let inner = self.module.ident();
151-
152-
Ok(inner.with_part(self.ty.clone()))
149+
fn ident(&self) -> Vc<AssetIdent> {
150+
self.module.ident().with_part(self.ty.clone())
153151
}
154152

155153
#[turbo_tasks::function]

turbopack/crates/turbopack-ecmascript/src/side_effect_optimization/locals/module.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ impl EcmascriptModuleLocalsModule {
4444
impl Module for EcmascriptModuleLocalsModule {
4545
#[turbo_tasks::function]
4646
fn ident(&self) -> Vc<AssetIdent> {
47-
let inner = self.module.ident();
48-
49-
inner.with_part(ModulePart::locals())
47+
self.module.ident().with_part(ModulePart::locals())
5048
}
5149

5250
#[turbo_tasks::function]

0 commit comments

Comments
 (0)