Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -327,7 +327,7 @@ pub fn initialize_workspace(
|
|||
cx.subscribe_in(&workspace_handle, window, {
|
||||
move |workspace, _, event, window, cx| match event {
|
||||
workspace::Event::PaneAdded(pane) => {
|
||||
initialize_pane(workspace, &pane, window, cx);
|
||||
initialize_pane(workspace, pane, window, cx);
|
||||
}
|
||||
workspace::Event::OpenBundledFile {
|
||||
text,
|
||||
|
@ -796,7 +796,7 @@ fn register_actions(
|
|||
.register_action(install_cli)
|
||||
.register_action(|_, _: &install_cli::RegisterZedScheme, window, cx| {
|
||||
cx.spawn_in(window, async move |workspace, cx| {
|
||||
install_cli::register_zed_scheme(&cx).await?;
|
||||
install_cli::register_zed_scheme(cx).await?;
|
||||
workspace.update_in(cx, |workspace, _, cx| {
|
||||
struct RegisterZedScheme;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue