Enable clippy::clone_on_copy
(#8728)
This PR enables the [`clippy::clone_on_copy`](https://rust-lang.github.io/rust-clippy/master/index.html#/clone_on_copy) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
5935681c5c
commit
9735912965
42 changed files with 144 additions and 160 deletions
|
@ -1437,14 +1437,13 @@ async fn test_following_across_workspaces(cx_a: &mut TestAppContext, cx_b: &mut
|
|||
});
|
||||
|
||||
executor.run_until_parked();
|
||||
let window_b_project_a = cx_b
|
||||
let window_b_project_a = *cx_b
|
||||
.windows()
|
||||
.iter()
|
||||
.max_by_key(|window| window.window_id())
|
||||
.unwrap()
|
||||
.clone();
|
||||
.unwrap();
|
||||
|
||||
let mut cx_b2 = VisualTestContext::from_window(window_b_project_a.clone(), cx_b);
|
||||
let mut cx_b2 = VisualTestContext::from_window(window_b_project_a, cx_b);
|
||||
|
||||
let workspace_b_project_a = window_b_project_a
|
||||
.downcast::<Workspace>()
|
||||
|
@ -1548,13 +1547,12 @@ async fn test_following_across_workspaces(cx_a: &mut TestAppContext, cx_b: &mut
|
|||
executor.run_until_parked();
|
||||
|
||||
assert_eq!(visible_push_notifications(cx_a).len(), 0);
|
||||
let window_a_project_b = cx_a
|
||||
let window_a_project_b = *cx_a
|
||||
.windows()
|
||||
.iter()
|
||||
.max_by_key(|window| window.window_id())
|
||||
.unwrap()
|
||||
.clone();
|
||||
let cx_a2 = &mut VisualTestContext::from_window(window_a_project_b.clone(), cx_a);
|
||||
.unwrap();
|
||||
let cx_a2 = &mut VisualTestContext::from_window(window_a_project_b, cx_a);
|
||||
let workspace_a_project_b = window_a_project_b
|
||||
.downcast::<Workspace>()
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue