mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
internal: format code
This commit is contained in:
parent
fd0cddf655
commit
7a58a23f16
1 changed files with 4 additions and 2 deletions
|
@ -442,8 +442,10 @@ impl FilterMapNextChecker {
|
||||||
|
|
||||||
if *function_id == self.next_function_id? {
|
if *function_id == self.next_function_id? {
|
||||||
if let Some(prev_filter_map_expr_id) = self.prev_filter_map_expr_id {
|
if let Some(prev_filter_map_expr_id) = self.prev_filter_map_expr_id {
|
||||||
let is_dyn_trait =
|
let is_dyn_trait = self
|
||||||
self.prev_receiver_ty.as_ref().map_or(false, |it| it.strip_references().dyn_trait().is_some());
|
.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 {
|
if *receiver_expr_id == prev_filter_map_expr_id && !is_dyn_trait {
|
||||||
return Some(());
|
return Some(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue