diff options
author | Aleksey Kladov <[email protected]> | 2020-08-13 09:32:03 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-13 09:57:17 +0100 |
commit | 26b98b07aa0e4430bc872b28eadbc822cfee7b6e (patch) | |
tree | 6fa8fa4bf84db66c4ef5c167fa6af4e54379d3bb /crates/syntax | |
parent | 982b29925275403697b52dd88bd79868ea8b67d9 (diff) |
Cleanup **Move Guard** assist
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/ast/edit.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/edit.rs b/crates/syntax/src/ast/edit.rs index 2667d9af4..190746e09 100644 --- a/crates/syntax/src/ast/edit.rs +++ b/crates/syntax/src/ast/edit.rs | |||
@@ -601,6 +601,9 @@ pub trait AstNodeEdit: AstNode + Clone + Sized { | |||
601 | } | 601 | } |
602 | rewriter.rewrite_ast(self) | 602 | rewriter.rewrite_ast(self) |
603 | } | 603 | } |
604 | fn indent_level(&self) -> IndentLevel { | ||
605 | IndentLevel::from_node(self.syntax()) | ||
606 | } | ||
604 | #[must_use] | 607 | #[must_use] |
605 | fn indent(&self, level: IndentLevel) -> Self { | 608 | fn indent(&self, level: IndentLevel) -> Self { |
606 | Self::cast(level.increase_indent(self.syntax().clone())).unwrap() | 609 | Self::cast(level.increase_indent(self.syntax().clone())).unwrap() |