Skip to content

Commit

Permalink
Remove unnecessary async_trait
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Jan 29, 2024
1 parent e39e720 commit b6ee2d2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion watchers/src/watchers/gnome_idle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub struct IdleWatcher {
is_idle: bool,
}

#[async_trait]
impl idle::SinceLastInput for IdleWatcher {
async fn seconds_since_input(&mut self) -> anyhow::Result<u32> {
let ms = self
Expand Down
2 changes: 0 additions & 2 deletions watchers/src/watchers/idle.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use crate::report_client::ReportClient;
use async_trait::async_trait;
use chrono::{Duration, Utc};
use std::sync::Arc;

#[async_trait]
pub trait SinceLastInput {
async fn seconds_since_input(&mut self) -> anyhow::Result<u32>;
}
Expand Down
1 change: 0 additions & 1 deletion watchers/src/watchers/x11_screensaver_idle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pub struct IdleWatcher {
is_idle: bool,
}

#[async_trait]
impl idle::SinceLastInput for IdleWatcher {
async fn seconds_since_input(&mut self) -> anyhow::Result<u32> {
self.client.seconds_since_last_input()
Expand Down

0 comments on commit b6ee2d2

Please sign in to comment.