diff options
author | 2020-03-29 18:21:48 +0200 | |
---|---|---|
committer | 2020-03-29 18:21:48 +0200 | |
commit | 12a7b371d4fed75f3934cf7d3788a6cf51c33c22 (patch) | |
tree | 970fc1287d6cbdbd419ef9151e6e94a077b5a7fd /src/wireguard/router/types.rs | |
parent | Merge branch 'tests' (diff) | |
download | wireguard-rs-12a7b371d4fed75f3934cf7d3788a6cf51c33c22.tar.xz wireguard-rs-12a7b371d4fed75f3934cf7d3788a6cf51c33c22.zip |
Restructuring and dependency version bump.
Diffstat (limited to '')
-rw-r--r-- | src/wireguard/router/types.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wireguard/router/types.rs b/src/wireguard/router/types.rs index ae37a6b..e0cd459 100644 --- a/src/wireguard/router/types.rs +++ b/src/wireguard/router/types.rs @@ -1,9 +1,11 @@ -use std::error::Error; -use std::fmt; -use std::sync::Arc; - use super::KeyPair; +use alloc::sync::Arc; +use core::fmt; + +// TODO: no_std alternatives +use std::error::Error; + pub trait Opaque: Send + Sync + 'static {} impl<T> Opaque for T where T: Send + Sync + 'static {} |