aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Grunert <mail@saschagrunert.de>2017-02-23 16:48:33 +0100
committerSascha Grunert <mail@saschagrunert.de>2017-02-23 16:48:33 +0100
commitac5bf766fbea67fa5c0ced6449df69b773c52490 (patch)
treed6044a878e59a06c7af5f449b29a27f95692a693
parentRemoved bindgen, added uapi bindings by hand (diff)
downloadwireguard-rs-ac5bf766fbea67fa5c0ced6449df69b773c52490.tar.xz
wireguard-rs-ac5bf766fbea67fa5c0ced6449df69b773c52490.zip
Removed dead code
-rw-r--r--src/uapi.rs9
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> {