diff options
author | Sascha Grunert <mail@saschagrunert.de> | 2017-02-23 16:48:33 +0100 |
---|---|---|
committer | Sascha Grunert <mail@saschagrunert.de> | 2017-02-23 16:48:33 +0100 |
commit | ac5bf766fbea67fa5c0ced6449df69b773c52490 (patch) | |
tree | d6044a878e59a06c7af5f449b29a27f95692a693 | |
parent | Removed bindgen, added uapi bindings by hand (diff) | |
download | wireguard-rs-ac5bf766fbea67fa5c0ced6449df69b773c52490.tar.xz wireguard-rs-ac5bf766fbea67fa5c0ced6449df69b773c52490.zip |
Removed dead code
-rw-r--r-- | src/uapi.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/uapi.rs b/src/uapi.rs index 85afb91..b87878b 100644 --- a/src/uapi.rs +++ b/src/uapi.rs @@ -1,7 +1,5 @@ //! Mapping to the `WireGuard` user API -#![allow(dead_code)] - use std::convert::{AsMut, AsRef}; use std::fmt::{Debug, Result, Formatter}; use std::marker::PhantomData; @@ -17,13 +15,6 @@ const WG_KEY_LEN: usize = 32; /// Represents a union field pub struct UnionField<T>(PhantomData<T>); -impl<T> UnionField<T> { - /// Creates a new `UnionField` - pub fn new() -> Self { - UnionField(PhantomData) - } -} - impl<T: Clone> Copy for UnionField<T> {} impl<T> AsRef<T> for UnionField<T> { |