Enable clippy::explicit_auto_deref (#8753)
This PR enables the [`clippy::explicit_auto_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_auto_deref) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
@@ -10052,7 +10052,7 @@ impl ViewInputHandler for Editor {
|
||||
.disjoint_anchors()
|
||||
.iter()
|
||||
.map(|selection| {
|
||||
selection.start.bias_left(&*snapshot)..selection.end.bias_right(&*snapshot)
|
||||
selection.start.bias_left(&snapshot)..selection.end.bias_right(&snapshot)
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
};
|
||||
|
||||
@@ -6774,7 +6774,7 @@ async fn test_following(cx: &mut gpui::TestAppContext) {
|
||||
move |_, leader, event, cx| {
|
||||
leader
|
||||
.read(cx)
|
||||
.add_event_to_update_proto(event, &mut *update.borrow_mut(), cx);
|
||||
.add_event_to_update_proto(event, &mut update.borrow_mut(), cx);
|
||||
},
|
||||
)
|
||||
.detach();
|
||||
@@ -6943,7 +6943,7 @@ async fn test_following_with_multiple_excerpts(cx: &mut gpui::TestAppContext) {
|
||||
cx.subscribe(&leader, move |_, leader, event, cx| {
|
||||
leader
|
||||
.read(cx)
|
||||
.add_event_to_update_proto(event, &mut *update.borrow_mut(), cx);
|
||||
.add_event_to_update_proto(event, &mut update.borrow_mut(), cx);
|
||||
})
|
||||
.detach();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user