From 7a58a23f16a531bf2365e044d76654d1d2965c53 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Mon, 26 Feb 2024 19:10:50 +0800 Subject: [PATCH] internal: format code --- crates/hir-ty/src/diagnostics/expr.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/hir-ty/src/diagnostics/expr.rs b/crates/hir-ty/src/diagnostics/expr.rs index 0587f3ef60..1a134e6d78 100644 --- a/crates/hir-ty/src/diagnostics/expr.rs +++ b/crates/hir-ty/src/diagnostics/expr.rs @@ -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(()); }