Fix warnings
This commit is contained in:
parent
3ec76b63d3
commit
141e0559a5
2 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,7 @@ use std::{
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
platform::{self, Dispatcher},
|
platform::{self, Dispatcher},
|
||||||
util::{self, post_inc},
|
util, MutableAppContext,
|
||||||
MutableAppContext,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub enum Foreground {
|
pub enum Foreground {
|
||||||
|
@ -450,7 +449,7 @@ impl Foreground {
|
||||||
{
|
{
|
||||||
let mut state = executor.state.lock();
|
let mut state = executor.state.lock();
|
||||||
let wakeup_at = state.now + duration;
|
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));
|
state.pending_timers.push((timer_id, wakeup_at, tx));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -491,6 +491,7 @@ pub struct FakeLanguageServer {
|
||||||
_output_task: Task<Result<()>>,
|
_output_task: Task<Result<()>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
type FakeLanguageServerHandlers = Arc<
|
type FakeLanguageServerHandlers = Arc<
|
||||||
Mutex<
|
Mutex<
|
||||||
HashMap<
|
HashMap<
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue