aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/linux/udp.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2020-03-16 12:41:59 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2020-03-16 12:41:59 +0100
commitf2ee976d065543a42a498370fd094967f3646cf9 (patch)
treeac545db1272e47d30b1da3623fc9ec23198a44b7 /src/platform/linux/udp.rs
parentAdditional in-order queue test for router (diff)
downloadwireguard-rs-f2ee976d065543a42a498370fd094967f3646cf9.tar.xz
wireguard-rs-f2ee976d065543a42a498370fd094967f3646cf9.zip
Upgraded treebitmap dependencytests
Diffstat (limited to 'src/platform/linux/udp.rs')
-rw-r--r--src/platform/linux/udp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/linux/udp.rs b/src/platform/linux/udp.rs
index 7b4fa33..e76c2a8 100644
--- a/src/platform/linux/udp.rs
+++ b/src/platform/linux/udp.rs
@@ -118,7 +118,7 @@ fn setsockopt_int(
#[allow(non_snake_case)]
const fn CMSG_ALIGN(len: usize) -> usize {
- (((len) + mem::size_of::<u32>() - 1) & !(mem::size_of::<u32>() - 1))
+ ((len) + mem::size_of::<u32>() - 1) & !(mem::size_of::<u32>() - 1)
}
#[allow(non_snake_case)]