diff options
author | Jake McGinty <me@jake.su> | 2018-02-14 15:36:02 +0000 |
---|---|---|
committer | Jake McGinty <me@jake.su> | 2018-02-14 15:36:02 +0000 |
commit | 956492a28c975d73113bdac0547cea46bc504f4b (patch) | |
tree | 377050c39f197408df9cc107cf1dad288ce2e141 /src/noise.rs | |
parent | clear unused imports (diff) | |
download | wireguard-rs-956492a28c975d73113bdac0547cea46bc504f4b.tar.xz wireguard-rs-956492a28c975d73113bdac0547cea46bc504f4b.zip |
clippy knows all
Diffstat (limited to 'src/noise.rs')
-rw-r--r-- | src/noise.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noise.rs b/src/noise.rs index 4870f41..255a3ff 100644 --- a/src/noise.rs +++ b/src/noise.rs @@ -12,10 +12,10 @@ lazy_static! { /// Wrapper around the `snow` library to easily setup the handshakes for WireGuard. pub struct Noise {} impl Noise { - fn new_foundation<'a>(local_privkey: &'a [u8]) -> NoiseBuilder<'a> { + fn new_foundation(local_privkey: &[u8]) -> NoiseBuilder { NoiseBuilder::new(NOISE_PARAMS.clone()) .local_private_key(local_privkey) - .prologue("WireGuard v1 zx2c4 Jason@zx2c4.com".as_bytes()) + .prologue(b"WireGuard v1 zx2c4 Jason@zx2c4.com") } pub fn build_initiator(local_privkey: &[u8], remote_pubkey: &[u8], psk: &Option<[u8; 32]>) -> Result<Session, Error> { |