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
xunilrj committed Sep 13, 2022
1 parent 4517bf5 commit 72024f0
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 @@ -85,9 +85,8 @@ fn is_non_camel_ok(binding: &JsIdentifierBinding, model: &SemanticModel) -> Opti

for reference in binding.all_reads(model) {
let greatparent = reference.node().grand_parent()?;
match greatparent.kind() {
JS_NEW_EXPRESSION => return Some(true),
_ => {}
if let JS_NEW_EXPRESSION = greatparent.kind() {
return Some(true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Safe fix: Rename this symbol to camel case
```
```
warning[js/useCamelCase]: Prefer functions names in camel case.
warning[nursery/useCamelCase]: Prefer functions names in camel case.
┌─ useCamelCase.js:45:10
45function PascalCaseNOk() { }
Expand Down

0 comments on commit 72024f0

Please sign in to comment.