Skip to content

Commit bd9bab8

Browse files
committed
fix
1 parent bc29b75 commit bd9bab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide_assists/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ fn calc_depth(pat: &ast::Pat, depth: usize) -> usize {
310310
| ast::Pat::RefPat(_)
311311
| ast::Pat::SlicePat(_)
312312
| ast::Pat::TuplePat(_)
313-
| ast::Pat::ConstBlockPat(_) => 1,
313+
| ast::Pat::ConstBlockPat(_) => depth,
314314

315-
// TODO: Other patterns may also be nested. Currently it simply supports only `TupleStructPat`
315+
// FIXME: Other patterns may also be nested. Currently it simply supports only `TupleStructPat`
316316
ast::Pat::TupleStructPat(pat) => {
317317
let mut max_depth = depth;
318318
for p in pat.fields() {

0 commit comments

Comments
 (0)