Skip to content

Commit

Permalink
fix: remove not needed references
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Feb 13, 2023
1 parent f0dfb10 commit eaaa6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn format_string(contents: &String, mut parser: Parser, args: &Args) -> Stri
};
let mut indent_level = 0;
for (node, nesting_level) in &mut query_tree {
adapt_indent_level(&node, &mut indent_level, &args);
adapt_indent_level(&node, &mut indent_level, args);

match node.kind() {
"field_definition" => {
Expand Down Expand Up @@ -102,7 +102,7 @@ pub fn format_file(path: &Path, parser: Parser, args: &Args) {
.expect("Unable to read the file");
let source_code = &contents;
let original_len = get_len(source_code);
let output = format_string(source_code, parser, &args);
let output = format_string(source_code, parser, args);
if get_len(&output) != original_len {
println!(
"There was an error parsing your code.
Expand Down

0 comments on commit eaaa6ab

Please sign in to comment.