diff options
Diffstat (limited to 'crates/ide/src/typing')
-rw-r--r-- | crates/ide/src/typing/on_enter.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/typing/on_enter.rs b/crates/ide/src/typing/on_enter.rs index 2a0d50098..7d2db201a 100644 --- a/crates/ide/src/typing/on_enter.rs +++ b/crates/ide/src/typing/on_enter.rs | |||
@@ -51,6 +51,7 @@ pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option<Text | |||
51 | if let Some(edit) = find_node_at_offset(file.syntax(), position.offset - TextSize::of('{')) | 51 | if let Some(edit) = find_node_at_offset(file.syntax(), position.offset - TextSize::of('{')) |
52 | .and_then(|block| on_enter_in_block(block, position)) | 52 | .and_then(|block| on_enter_in_block(block, position)) |
53 | { | 53 | { |
54 | cov_mark::hit!(indent_block_contents); | ||
54 | return Some(edit); | 55 | return Some(edit); |
55 | } | 56 | } |
56 | } | 57 | } |
@@ -346,6 +347,7 @@ fn main() { | |||
346 | 347 | ||
347 | #[test] | 348 | #[test] |
348 | fn indents_fn_body_block() { | 349 | fn indents_fn_body_block() { |
350 | cov_mark::check!(indent_block_contents); | ||
349 | do_check( | 351 | do_check( |
350 | r#" | 352 | r#" |
351 | fn f() {$0()} | 353 | fn f() {$0()} |