Skip to content

Commit

Permalink
fix is_self_async
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Apr 19, 2024
1 parent 55fbdef commit 0f1b8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/turbopack-ecmascript/src/references/external_module.rs
Expand Up @@ -212,8 +212,8 @@ impl ChunkItem for CachedExternalModuleChunkItem {
}

#[turbo_tasks::function]
fn is_self_async(&self) -> Vc<bool> {
Vc::cell(true)
async fn is_self_async(&self) -> Result<Vc<bool>> {
Vc::cell(self.module.await?.external_type == CachedExternalType::EcmaScriptViaImport)

Check failure on line 216 in crates/turbopack-ecmascript/src/references/external_module.rs

View workflow job for this annotation

GitHub Actions / Turbopack rust check

mismatched types

Check failure on line 216 in crates/turbopack-ecmascript/src/references/external_module.rs

View workflow job for this annotation

GitHub Actions / Turbopack rust check

mismatched types
}
}

Expand Down

0 comments on commit 0f1b8c6

Please sign in to comment.