mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
minor: address review comments
This commit is contained in:
parent
98847e4d5b
commit
08694dc1ef
3 changed files with 9 additions and 10 deletions
|
@ -117,7 +117,7 @@ impl IndentLevel {
|
|||
/// }
|
||||
/// ```
|
||||
/// if you indent the block, the `{` token would stay put.
|
||||
pub(in super) fn increase_indent(self, node: &SyntaxNode) {
|
||||
pub(super) fn increase_indent(self, node: &SyntaxNode) {
|
||||
let tokens = node.preorder_with_tokens().filter_map(|event| match event {
|
||||
rowan::WalkEvent::Leave(NodeOrToken::Token(it)) => Some(it),
|
||||
_ => None,
|
||||
|
@ -132,7 +132,7 @@ impl IndentLevel {
|
|||
}
|
||||
}
|
||||
|
||||
pub(in super) fn decrease_indent(self, node: &SyntaxNode) {
|
||||
pub(super) fn decrease_indent(self, node: &SyntaxNode) {
|
||||
let tokens = node.preorder_with_tokens().filter_map(|event| match event {
|
||||
rowan::WalkEvent::Leave(NodeOrToken::Token(it)) => Some(it),
|
||||
_ => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue