Skip to content

Commit

Permalink
internal: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Feb 26, 2024
1 parent fd0cddf commit 7a58a23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/hir-ty/src/diagnostics/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ impl FilterMapNextChecker {

if *function_id == self.next_function_id? {
if let Some(prev_filter_map_expr_id) = self.prev_filter_map_expr_id {
let is_dyn_trait =
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
.as_ref()
.map_or(false, |it| it.strip_references().dyn_trait().is_some());
if *receiver_expr_id == prev_filter_map_expr_id && !is_dyn_trait {
return Some(());
}
Expand Down

0 comments on commit 7a58a23

Please sign in to comment.