Skip to content

Commit

Permalink
fallback: remove unused Future import
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Oct 18, 2022
1 parent bd399c2 commit 2efad4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub mod tokio {
pub struct TokioRuntime;

impl super::Runtime for TokioRuntime {
fn spawn<F>(f: F)
fn spawn_blocking<F>(f: F)
where
F: Future,
F: Send + 'static,
Expand Down Expand Up @@ -183,7 +183,7 @@ fn callback(_store: SCDynamicStore, _changed_keys: CFArray<CFString>, info: &mut
}
}

async fn background_task(tx: mpsc::Sender<()>) {
fn background_task(tx: mpsc::Sender<()>) {
let store = SCDynamicStoreBuilder::new("global-network-watcher")
.callback_context(SCDynamicStoreCallBackContext {
callout: callback,
Expand Down
1 change: 0 additions & 1 deletion src/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use futures::stream::{FusedStream, Stream};
use if_addrs::IfAddr;
use ipnet::{IpNet, Ipv4Net, Ipv6Net};
use std::collections::{HashSet, VecDeque};
use std::future::Future;
use std::io::Result;
use std::pin::Pin;
use std::task::{Context, Poll};
Expand Down

0 comments on commit 2efad4b

Please sign in to comment.