diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-13 10:12:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-13 10:12:28 +0100 |
commit | 8f58d45bc4a8f647bc25faa092a30b0e44d27198 (patch) | |
tree | 6fa8fa4bf84db66c4ef5c167fa6af4e54379d3bb /crates/syntax | |
parent | 982b29925275403697b52dd88bd79868ea8b67d9 (diff) | |
parent | 26b98b07aa0e4430bc872b28eadbc822cfee7b6e (diff) |
Merge #5739
5739: Cleanup **Move Guard** assist
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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() |