File tree Expand file tree Collapse file tree 3 files changed +0
-4
lines changed Expand file tree Collapse file tree 3 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pub struct IdleWatcher {
10
10
is_idle : bool ,
11
11
}
12
12
13
- #[ async_trait]
14
13
impl idle:: SinceLastInput for IdleWatcher {
15
14
async fn seconds_since_input ( & mut self ) -> anyhow:: Result < u32 > {
16
15
let ms = self
Original file line number Diff line number Diff line change 1
1
use crate :: report_client:: ReportClient ;
2
- use async_trait:: async_trait;
3
2
use chrono:: { Duration , Utc } ;
4
3
use std:: sync:: Arc ;
5
4
6
- #[ async_trait]
7
5
pub trait SinceLastInput {
8
6
async fn seconds_since_input ( & mut self ) -> anyhow:: Result < u32 > ;
9
7
}
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ pub struct IdleWatcher {
9
9
is_idle : bool ,
10
10
}
11
11
12
- #[ async_trait]
13
12
impl idle:: SinceLastInput for IdleWatcher {
14
13
async fn seconds_since_input ( & mut self ) -> anyhow:: Result < u32 > {
15
14
self . client . seconds_since_last_input ( )
You can’t perform that action at this time.
0 commit comments