Skip to content

Commit

Permalink
Remove unnecessary dereferences
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Nov 22, 2024
1 parent 350083a commit 040eab8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl<C: Comments> ServerActions<C> {

body.stmts.retain(|stmt| {
let found_directive = self.get_directive_for_stmt(
&stmt,
stmt,
&mut directive,
DirectiveLocation::FunctionBody,
&mut is_allowed_position,
Expand All @@ -504,7 +504,7 @@ impl<C: Comments> ServerActions<C> {
stmts.retain(|item| {
if let ModuleItem::Stmt(stmt) = item {
let found_directive = self.get_directive_for_stmt(
&stmt,
stmt,
&mut directive,
DirectiveLocation::Module,
&mut is_allowed_position,
Expand Down

0 comments on commit 040eab8

Please sign in to comment.