File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
crates/ide/src/inlay_hints Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ pub(super) fn hints(
52
52
let module = ast:: Module :: cast ( list. syntax ( ) . parent ( ) ?) ?;
53
53
( format ! ( "mod {}" , module. name( ) ?) , module. name ( ) . map ( name) )
54
54
} else if let Some ( label) = ast:: Label :: cast ( node. clone ( ) ) {
55
- // in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`, to respect the `min_lines` config
55
+ // in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`
56
+ // the actual number of lines in this case should be the line count of the parent BlockExpr, which the `min_lines` config care about
56
57
node = node. parent ( ) ?;
57
58
let block = label. syntax ( ) . parent ( ) . and_then ( ast:: BlockExpr :: cast) ?;
58
59
closing_token = block. stmt_list ( ) ?. r_curly_token ( ) ?;
You can’t perform that action at this time.
0 commit comments