Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Feb 5, 2024
1 parent 7384ba2 commit c95038c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/mako/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![feature(box_patterns)]
#![feature(hasher_prefixfree_extras)]
#![feature(let_chains)]
#![feature(result_option_inspect)]

mod analyze_deps;
mod ast;
Expand Down
1 change: 0 additions & 1 deletion crates/mako/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![feature(box_patterns)]
#![feature(let_chains)]
#![feature(result_option_inspect)]

use std::sync::Arc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub enum ReExportType {
pub(super) fn skip_module_optimize(
module_graph: &mut ModuleGraph,

tree_shake_modules_ids: &Vec<ModuleId>,
tree_shake_modules_ids: &[ModuleId],
tree_shake_modules_map: &HashMap<ModuleId, RefCell<TreeShakeModule>>,

_context: &Arc<Context>,
Expand Down
2 changes: 1 addition & 1 deletion crates/mako/src/tree_shaking/unused_statement_marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl VisitMut for UnusedStatementMarker<'_, '_> {

// 清理 export { } 这里面的变量
fn visit_mut_export_specifiers(&mut self, specifiers: &mut Vec<swc_ecma_ast::ExportSpecifier>) {
for (_, specifier) in specifiers.iter().enumerate() {
for specifier in specifiers.iter() {
match specifier {
swc_ecma_ast::ExportSpecifier::Namespace(_) => {}
swc_ecma_ast::ExportSpecifier::Default(_) => {}
Expand Down

0 comments on commit c95038c

Please sign in to comment.