mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-18 17:40:29 +00:00
Cleanup **Move Guard** assist
This commit is contained in:
parent
982b299252
commit
26b98b07aa
3 changed files with 112 additions and 117 deletions
|
@ -601,6 +601,9 @@ pub trait AstNodeEdit: AstNode + Clone + Sized {
|
|||
}
|
||||
rewriter.rewrite_ast(self)
|
||||
}
|
||||
fn indent_level(&self) -> IndentLevel {
|
||||
IndentLevel::from_node(self.syntax())
|
||||
}
|
||||
#[must_use]
|
||||
fn indent(&self, level: IndentLevel) -> Self {
|
||||
Self::cast(level.increase_indent(self.syntax().clone())).unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue