Skip to content

Commit

Permalink
remove error in update (#5686)
Browse files Browse the repository at this point in the history
### Description

The default implementation will handle that without an error
  • Loading branch information
sokra authored Aug 8, 2023
1 parent d0aafab commit 59effa3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions crates/turbopack-dev/src/ecmascript/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ use turbopack_core::{
code_builder::{Code, CodeBuilder},
output::OutputAsset,
source_map::{GenerateSourceMap, OptionSourceMap},
version::{
MergeableVersionedContent, Update, Version, VersionedContent, VersionedContentMerger,
},
version::{MergeableVersionedContent, Version, VersionedContent, VersionedContentMerger},
};
use turbopack_ecmascript::{chunk::EcmascriptChunkContent, utils::StringifyJs};

Expand Down Expand Up @@ -123,11 +121,6 @@ impl VersionedContent for EcmascriptDevChunkContent {
fn version(self: Vc<Self>) -> Vc<Box<dyn Version>> {
Vc::upcast(self.own_version())
}

#[turbo_tasks::function]
fn update(self: Vc<Self>, _from_version: Vc<Box<dyn Version>>) -> Result<Vc<Update>> {
bail!("EcmascriptDevChunkContent is not updateable")
}
}

#[turbo_tasks::value_impl]
Expand Down

0 comments on commit 59effa3

Please sign in to comment.