Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fmt and clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Leite committed Nov 17, 2022
1 parent 33ab9b3 commit 1081e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ impl Rule for InlineVariable {
let expr = initializer.expression().ok()?;
match expr {
JsAnyExpression::JsArrowFunctionExpression(_)
| JsAnyExpression::JsFunctionExpression(_)
| JsAnyExpression::JsClassExpression(_)
| JsAnyExpression::JsFunctionExpression(_)
| JsAnyExpression::JsClassExpression(_)
| JsAnyExpression::JsAssignmentExpression(_) => return None,
_ => {}
}
Expand All @@ -79,7 +79,6 @@ impl Rule for InlineVariable {

// Inline variable


let expression = initializer.expression().ok()?;
Some(State {
references,
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_rowan/src/ast/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ where
// last write wins
if let Some(last) = modifications.last() {
if last.0 == next_change.new_node_slot {
modifications.pop();
modifications.pop();
}
}
modifications.push((next_change.new_node_slot, next_change.new_node));
Expand Down

0 comments on commit 1081e53

Please sign in to comment.