Skip to content

Commit

Permalink
codestyle: use explicit Arc::clone
Browse files Browse the repository at this point in the history
  • Loading branch information
MultisampledNight committed Oct 1, 2023
1 parent 042b353 commit bee5e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod ui_commands;

use log::{error, info};
use nvim_rs::{error::CallError, Neovim, UiAttachOptions, Value};
use std::{io::Error, process::exit};
use std::{io::Error, process::exit, sync::Arc};
use tokio::{
runtime::{Builder, Runtime},
task::JoinHandle,
Expand Down Expand Up @@ -92,7 +92,7 @@ async fn launch() -> NeovimSession {
let should_handle_clipboard = settings.wsl || settings.server.is_some();
setup_neovide_specific_state(&session.neovim, should_handle_clipboard).await;

start_ui_command_handler(session.neovim.clone());
start_ui_command_handler(Arc::clone(&session.neovim));
SETTINGS.read_initial_values(&session.neovim).await;
SETTINGS.setup_changed_listeners(&session.neovim).await;
session
Expand Down

0 comments on commit bee5e6c

Please sign in to comment.