mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Refactor formatting code out of ra_ida_api_light into ra_fmt.
This commit is contained in:
parent
12e3b4c70b
commit
02dd0cfd8c
10 changed files with 33 additions and 10 deletions
|
@ -4,8 +4,8 @@ use ra_syntax::{
|
|||
algo::{find_node_at_offset, find_leaf_at_offset, LeafAtOffset},
|
||||
ast::{self, AstToken},
|
||||
};
|
||||
|
||||
use crate::{LocalEdit, TextEditBuilder, formatting::leading_indent};
|
||||
use ra_fmt::leading_indent;
|
||||
use crate::{LocalEdit, TextEditBuilder};
|
||||
|
||||
pub fn on_enter(file: &SourceFile, offset: TextUnit) -> Option<LocalEdit> {
|
||||
let comment =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue