inline_completion_button: Do some cleanup (#15849)
This PR does some cleanup in the `inline_completion_button` after #15443. Release Notes: - N/A
This commit is contained in:
parent
1c3f303594
commit
82310092a2
2 changed files with 15 additions and 14 deletions
|
@ -42,7 +42,7 @@ use std::{
|
|||
sync::Arc,
|
||||
};
|
||||
use theme::{ActiveTheme, SystemAppearance, ThemeRegistry, ThemeSettings};
|
||||
use util::{maybe, parse_env_output, with_clone, ResultExt, TryFutureExt};
|
||||
use util::{maybe, parse_env_output, ResultExt, TryFutureExt};
|
||||
use uuid::Uuid;
|
||||
use welcome::{show_welcome_view, BaseKeymap, FIRST_OPEN};
|
||||
use workspace::{AppState, WorkspaceSettings, WorkspaceStore};
|
||||
|
@ -386,7 +386,10 @@ fn main() {
|
|||
})
|
||||
};
|
||||
|
||||
app.on_open_urls(with_clone!(open_listener, move |urls| open_listener.open_urls(urls)));
|
||||
app.on_open_urls({
|
||||
let open_listener = open_listener.clone();
|
||||
move |urls| open_listener.open_urls(urls)
|
||||
});
|
||||
app.on_reopen(move |cx| {
|
||||
if let Some(app_state) = AppState::try_global(cx).and_then(|app_state| app_state.upgrade())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue