Skip to content

Commit

Permalink
chore: update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Oct 20, 2024
1 parent 2708e30 commit a7cff69
Show file tree
Hide file tree
Showing 121 changed files with 400 additions and 765 deletions.
118 changes: 1 addition & 117 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions bench/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# bench

## 1.0.18

### Patch Changes

- Updated dependencies [663dfeed]
- @farmfe/core@1.3.29

## 1.0.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion bench/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bench",
"version": "1.0.17",
"version": "1.0.18",
"private": true,
"description": "",
"scripts": {},
Expand Down
22 changes: 0 additions & 22 deletions crates/bench/Cargo.toml

This file was deleted.

56 changes: 0 additions & 56 deletions crates/bench/benches/compiler_bench.rs

This file was deleted.

2 changes: 1 addition & 1 deletion crates/compiler/src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Compiler {

if !self.context.log_store.lock().warnings().is_empty() {
for warning in self.context.log_store.lock().warnings() {
println!("[warn] {}", warning);
println!("[warn] {warning}");
}
}

Expand Down
8 changes: 2 additions & 6 deletions crates/compiler/src/generate/partial_bundling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ mod tests {
let module_group_graph = module_group_graph_from_entries(
&module_graph
.entries
.clone()
.into_iter()
.map(|(entry, _)| entry)
.clone().into_keys()
.collect(),
&mut module_graph,
);
Expand Down Expand Up @@ -311,9 +309,7 @@ mod tests {
let module_group_graph = module_group_graph_from_entries(
&module_graph
.entries
.clone()
.into_iter()
.map(|(entry, _)| entry)
.clone().into_keys()
.collect(),
&mut module_graph,
);
Expand Down
2 changes: 1 addition & 1 deletion crates/compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Compiler {
.plugin_driver
.write_plugin_cache(&self.context)
.unwrap_or_else(|err| {
eprintln!("write plugin cache error: {:?}", err);
eprintln!("write plugin cache error: {err:?}");
});

if matches!(self.context.config.mode, Mode::Development) {
Expand Down
4 changes: 2 additions & 2 deletions crates/compiler/src/update/diff_and_patch_module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl DiffResult {
// added_modules: g, h

for (module_id, deps_diff_result) in &self.deps_changes {
println!("{:?} -> ", module_id);
println!("{module_id:?} -> ");

println!(
" added: {:?}",
Expand Down Expand Up @@ -372,7 +372,7 @@ fn diff_module_deps(
let mut children_added = vec![];

if module_graph.has_module(&dep) {
panic!("The module({:?}) exists in previous module graph, this should never happen and there is a internal bug inside farm. Please report it via issues", dep);
panic!("The module({dep:?}) exists in previous module graph, this should never happen and there is a internal bug inside farm. Please report it via issues");
}

for child in children {
Expand Down
4 changes: 2 additions & 2 deletions crates/compiler/src/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ impl Compiler {
&removed_modules,
&cloned_context,
) {
println!("Failed to regenerate resources: {}", e);
println!("modules to regenerate: {:?}", cloned_updated_module_ids);
println!("Failed to regenerate resources: {e}");
println!("modules to regenerate: {cloned_updated_module_ids:?}");
}

finalize_resources(&cloned_context).unwrap();
Expand Down
6 changes: 3 additions & 3 deletions crates/compiler/src/update/patch_module_group_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn patch_module_group_graph(
let module_group_ids = {
let module = module_graph
.module(module_id)
.unwrap_or_else(|| panic!("module {:?} not found", module_id));
.unwrap_or_else(|| panic!("module {module_id:?} not found"));
module.module_groups.clone()
};

Expand Down Expand Up @@ -95,7 +95,7 @@ pub fn patch_module_group_graph(
for module_group_id in &previous_parent_groups {
let current_module = module_graph
.module(&current_module_id)
.unwrap_or_else(|| panic!("module {:?} not found", current_module_id));
.unwrap_or_else(|| panic!("module {current_module_id:?} not found"));

if current_module.module_groups.contains(module_group_id) {
continue;
Expand Down Expand Up @@ -164,7 +164,7 @@ pub fn patch_module_group_graph(
} else {
let module = module_graph
.module(module_id)
.unwrap_or_else(|| panic!("module {:?} not found", module_id));
.unwrap_or_else(|| panic!("module {module_id:?} not found"));
module.module_groups.clone()
}
};
Expand Down
Loading

0 comments on commit a7cff69

Please sign in to comment.