mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-03 12:16:22 -04:00
Clean up the compile-time warnings
These are all the auto-applied warning corrections.
This commit is contained in:
parent
ead8e9ab86
commit
5884f89d1a
4 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::tools::*;
|
||||
pub use allo_isolate::ffi::DartCObject;
|
||||
|
||||
pub use allo_isolate::IntoDart;
|
||||
use allo_isolate::Isolate;
|
||||
use core::fmt::Debug;
|
||||
|
|
|
@ -16,15 +16,15 @@ cfg_if! {
|
|||
pub use async_std::future::timeout;
|
||||
} else if #[cfg(feature="rt-tokio")] {
|
||||
pub use tokio::task::JoinHandle;
|
||||
pub use tokio::net::TcpStream;
|
||||
|
||||
//pub use tokio::time::error::Elapsed as TimeoutError;
|
||||
pub use tokio::sync::Mutex as AsyncMutex;
|
||||
|
||||
pub fn spawn<F: Future<Output = T> + Send + 'static, T: Send + 'static>(f: F) -> JoinHandle<T> {
|
||||
GLOBAL_RUNTIME.spawn(f)
|
||||
}
|
||||
|
||||
pub use tokio::time::sleep;
|
||||
pub use tokio::time::timeout;
|
||||
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref GLOBAL_RUNTIME: tokio::runtime::Runtime = tokio::runtime::Runtime::new().unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue