Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunisher committed Jun 28, 2024
1 parent b3b1b77 commit 3cdae65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 227,9 @@ struct BasicEvaluatedExpressionVisitor<'a, F: FnMut(&Expr) -> ()> {

impl<'a, F: FnMut(&Expr) -> ()> Visit for BasicEvaluatedExpressionVisitor<'a, F> {

Check failure on line 228 in crates/rspack_plugin_javascript/src/visitors/dependency/context_dependency_helper.rs

View workflow job for this annotation

GitHub Actions / Rust check

unneeded unit return type
fn visit_expr(&mut self, n: &Expr) {
self.targets.retain(|evaluted_expr| {
self.targets.retain(|evaluated_expr| {
let span = n.span();
let (lo, hi) = evaluted_expr.range();
let (lo, hi) = evaluated_expr.range();
if span.real_lo() == lo && span.hi().0 == hi {
(self.on_visit)(n);
return false;
Expand Down

0 comments on commit 3cdae65

Please sign in to comment.