Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions crates/rspack_core/src/compiler/compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use rspack_hash::{RspackHash, RspackHashDigest};
use rspack_hook::define_hook;
use rspack_paths::{ArcPath, ArcPathIndexSet, ArcPathSet};
use rspack_sources::{BoxSource, CachedSource, SourceExt};

Check failure on line 28 in crates/rspack_core/src/compiler/compilation.rs

View workflow job for this annotation

GitHub Actions / Run Rust Tests / Rust check

unused imports: `CachedSource` and `SourceExt`
use rspack_tasks::CompilerContext;
use rspack_util::{itoa, tracing_preset::TRACING_BENCH_TARGET};
use rustc_hash::{FxHashMap as HashMap, FxHashSet as HashSet, FxHasher};
Expand Down Expand Up @@ -1341,10 +1341,7 @@

self.emit_asset(
filename.clone(),
CompilationAsset::new(
Some(CachedSource::new(file_manifest.source).boxed()),
file_manifest.info,
),
CompilationAsset::new(Some(file_manifest.source), file_manifest.info),
);

_ = self
Expand Down
Loading