We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0cddf commit 7a58a23Copy full SHA for 7a58a23
crates/hir-ty/src/diagnostics/expr.rs
@@ -442,8 +442,10 @@ impl FilterMapNextChecker {
442
443
if *function_id == self.next_function_id? {
444
if let Some(prev_filter_map_expr_id) = self.prev_filter_map_expr_id {
445
- let is_dyn_trait =
446
- self.prev_receiver_ty.as_ref().map_or(false, |it| it.strip_references().dyn_trait().is_some());
+ let is_dyn_trait = self
+ .prev_receiver_ty
447
+ .as_ref()
448
+ .map_or(false, |it| it.strip_references().dyn_trait().is_some());
449
if *receiver_expr_id == prev_filter_map_expr_id && !is_dyn_trait {
450
return Some(());
451
}
0 commit comments