aboutsummaryrefslogtreecommitdiff
path: root/nftnl/src/lib.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-07-17 23:31:58 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-07-17 23:31:58 +0200
commit46645b2f4911b0342ce6da07361557300f9c200e (patch)
tree03d76169597337403430eca317f55480275b6f68 /nftnl/src/lib.rs
parentcfd08e7f6255d073b6acd16949dd52aa82c0e8b8 (diff)
Fix warnings emitted by clippy
Diffstat (limited to 'nftnl/src/lib.rs')
-rw-r--r--nftnl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/src/lib.rs b/nftnl/src/lib.rs
index 01751ad..96e0e26 100644
--- a/nftnl/src/lib.rs
+++ b/nftnl/src/lib.rs
@@ -75,5 +75,5 @@ pub unsafe trait NlMsg {
/// length (nla_len) is 16 bits, the largest message is a bit larger than
/// 64 KBytes.
pub fn nft_nlmsg_maxsize() -> u32 {
- ::std::u16::MAX as u32 + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32
+ u32::from(::std::u16::MAX) + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32
}