mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Cleanups
This commit is contained in:
parent
8843588fca
commit
dc2151085e
4 changed files with 18 additions and 24 deletions
|
@ -592,7 +592,7 @@ pub fn handle_formatting(
|
|||
let crate_ids = world.analysis().crate_for(file_id)?;
|
||||
|
||||
let file_line_index = world.analysis().file_line_index(file_id)?;
|
||||
let end_position = TextSize::of(&file).conv_with(&file_line_index);
|
||||
let end_position = TextSize::of(file.as_str()).conv_with(&file_line_index);
|
||||
|
||||
let mut rustfmt = match &world.config.rustfmt {
|
||||
RustfmtConfig::Rustfmt { extra_args } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue