Skip to content

Commit

Permalink
fix: fix check error
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn committed May 7, 2024
1 parent 6f2da3d commit 938b44b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/rspack_plugin_size_limits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ futures = { workspace = true }
rspack_core = { path = "../rspack_core" }
rspack_error = { path = "../rspack_error" }
rspack_hook = { path = "../rspack_hook" }
rspack_regex = { path = "../rspack_regex" }
rspack_util = { path = "../rspack_util" }
6 changes: 3 additions & 3 deletions crates/rspack_plugin_size_limits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl SizeLimitsPlugin {
}

fn add_assets_over_size_limit_warning(
detail: &Vec<(&String, f64)>,
detail: &[(&String, f64)],
limit: f64,
hints: &str,
diagnostics: &mut Vec<Diagnostic>,
Expand All @@ -99,7 +99,7 @@ impl SizeLimitsPlugin {
}

fn add_entrypoints_over_size_limit_warning(
detail: &Vec<(&String, f64, Vec<String>)>,
detail: &[(&String, f64, Vec<String>)],
limit: f64,
hints: &str,
diagnostics: &mut Vec<Diagnostic>,
Expand Down Expand Up @@ -159,7 +159,7 @@ async fn after_emit(&self, compilation: &mut Compilation) -> Result<()> {

for (name, ukey) in compilation.entrypoints.iter() {
let entry = compilation.chunk_group_by_ukey.expect_get(ukey);
let size = self.get_entrypoint_size(entry, &compilation).await;
let size = self.get_entrypoint_size(entry, compilation).await;

if size > max_entrypoint_size {
let mut files = vec![];
Expand Down

0 comments on commit 938b44b

Please sign in to comment.