From b1ec08e3ffb510e4f93dbf8a93eac6c98b88f8dc Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sat, 8 Aug 2020 17:42:50 +0300 Subject: Remove clone --- crates/rust-analyzer/src/main_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index ceddb2b05..438e965e0 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs @@ -47,7 +47,7 @@ pub fn main_loop(config: Config, connection: Connection) -> Result<()> { SetThreadPriority(thread, thread_priority_above_normal); } - GlobalState::new(connection.sender.clone(), config).run(connection.receiver) + GlobalState::new(connection.sender, config).run(connection.receiver) } enum Event { -- cgit v1.2.3