From 141e0559a560a0d05f716bef5ea56d27c85b56e7 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 2 Mar 2022 12:45:49 +0100 Subject: [PATCH] Fix warnings --- crates/gpui/src/executor.rs | 5 ++--- crates/lsp/src/lsp.rs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/executor.rs b/crates/gpui/src/executor.rs index c828fe3ed4..9c4b9e90e0 100644 --- a/crates/gpui/src/executor.rs +++ b/crates/gpui/src/executor.rs @@ -16,8 +16,7 @@ use std::{ use crate::{ platform::{self, Dispatcher}, - util::{self, post_inc}, - MutableAppContext, + util, MutableAppContext, }; pub enum Foreground { @@ -450,7 +449,7 @@ impl Foreground { { let mut state = executor.state.lock(); let wakeup_at = state.now + duration; - timer_id = post_inc(&mut state.next_timer_id); + timer_id = util::post_inc(&mut state.next_timer_id); state.pending_timers.push((timer_id, wakeup_at, tx)); } diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 4a988f90b5..dc57c85213 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -491,6 +491,7 @@ pub struct FakeLanguageServer { _output_task: Task>, } +#[cfg(any(test, feature = "test-support"))] type FakeLanguageServerHandlers = Arc< Mutex< HashMap<