mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Simplify
This commit is contained in:
parent
d6b908ec41
commit
e844784d8d
11 changed files with 110 additions and 110 deletions
|
@ -301,9 +301,9 @@ pub fn diagnostics(
|
|||
)
|
||||
}));
|
||||
|
||||
let parse = sema.parse(file_id);
|
||||
let parse = parse.syntax_node();
|
||||
|
||||
for node in parse.syntax().descendants() {
|
||||
for node in parse.descendants() {
|
||||
handlers::useless_braces::useless_braces(&mut res, file_id, &node);
|
||||
handlers::field_shorthand::field_shorthand(&mut res, file_id, &node);
|
||||
handlers::json_is_not_rust::json_in_items(&sema, &mut res, file_id, &node, config);
|
||||
|
@ -386,7 +386,7 @@ pub fn diagnostics(
|
|||
|
||||
handle_lint_attributes(
|
||||
&ctx.sema,
|
||||
parse.syntax(),
|
||||
&parse,
|
||||
&mut rustc_stack,
|
||||
&mut clippy_stack,
|
||||
&mut diagnostics_of_range,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue