diff options
author | 2017-02-22 12:36:54 +0100 | |
---|---|---|
committer | 2017-02-22 12:36:54 +0100 | |
commit | e4ff688601fd9690d75273d2139eb509a03347ab (patch) | |
tree | 08378b65459fe2ea213cdee6d269e41f0ee13ac2 /src | |
parent | Added dummy support (diff) | |
download | wireguard-rs-e4ff688601fd9690d75273d2139eb509a03347ab.tar.xz wireguard-rs-e4ff688601fd9690d75273d2139eb509a03347ab.zip |
Fixed clippy lints
Diffstat (limited to 'src')
-rw-r--r-- | src/bindgen.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/bindgen.rs b/src/bindgen.rs index 212e4ac..8f97077 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -1,7 +1,7 @@ //! Bindgen source code #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, dead_code)] -pub const TUNSETIFF: u64 = (1 << 0 + 8 + 8 + 14) | (84 << 0 + 8) | (202 << 0) | (4 << 0 + 8 + 8); +pub const TUNSETIFF: u64 = (1 << (0 + 8 + 8 + 14)) | (84 << (0 + 8)) | (202 << 0) | (4 << (0 + 8 + 8)); include!(concat!(env!("OUT_DIR"), "/bindings.rs")); @@ -1,4 +1,7 @@ -//! The WireGuard implementation in Rust +//! # WireGuard.rs +//! ## Fast, modern and secure VPN tunnel +//! +//! Target of this project is to have a user space Rust implementation of `WireGuard`. #[macro_use] extern crate log; @@ -25,12 +28,12 @@ use futures::{Future, Poll}; use tokio_core::net::UdpSocket; use tokio_core::reactor::{Core, Handle}; -/// The main WireGuard structure +/// The main `WireGuard` structure pub struct WireGuard { /// The tokio core which runs the server core: Core, - /// The WireGuard future for tokio + /// The `WireGuard` future for tokio tunnel: WireGuardFuture, } @@ -73,7 +76,7 @@ impl WireGuard { } #[derive(Debug)] -/// The main WireGuard future +/// The main `WireGuard` future pub struct WireGuardFuture { /// A tunneling device device: Device, |