Skip to content

Commit 778e71b

Browse files
committed
fmt
1 parent 76e0429 commit 778e71b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ide_assists/src/handlers/add_turbo_fish.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ pub(crate) fn add_turbo_fish(acc: &mut Assists, ctx: &AssistContext) -> Option<(
7979

8080
let number_of_arguments = generics
8181
.iter()
82-
.filter(|param| matches!(param, hir::GenericParam::TypeParam(_) | hir::GenericParam::ConstParam(_)))
82+
.filter(|param| {
83+
matches!(param, hir::GenericParam::TypeParam(_) | hir::GenericParam::ConstParam(_))
84+
})
8385
.count();
8486
let fish_head = std::iter::repeat("_").take(number_of_arguments).collect::<Vec<_>>().join(",");
8587

0 commit comments

Comments
 (0)