Skip to content

Commit

Permalink
The file has many things so make it clear the function is about forma…
Browse files Browse the repository at this point in the history
…t config
  • Loading branch information
asterite committed Feb 13, 2025
1 parent 5e15c6e commit b284b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tooling/lsp/src/requests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ fn on_formatting_inner(
return Ok(None);
}

let config = read_config(directory_path);
let config = read_format_config(directory_path);
let new_text = nargo_fmt::format(source, module, &config);

let start_position = Position { line: 0, character: 0 };
Expand All @@ -332,7 +332,7 @@ fn on_formatting_inner(
}
}

fn read_config(file_path: Option<&Path>) -> Config {
fn read_format_config(file_path: Option<&Path>) -> Config {
match file_path {
Some(file_path) => match Config::read(file_path) {
Ok(config) => config,
Expand Down

0 comments on commit b284b04

Please sign in to comment.