From 4db701dafedf6dacce465bb90d4594628b67dbf8 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Sat, 12 Sep 2020 12:36:27 +0300 Subject: Adapt for safe-isation of some libc functions. (https://github.com/rust-lang/libc/pull/1870) Denied lint being overridden instead of unsafe block removed to preserve compatibility with old `libc` versions. --- src/sys/quota.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sys/quota.rs') diff --git a/src/sys/quota.rs b/src/sys/quota.rs index 1199d5f9..19330132 100644 --- a/src/sys/quota.rs +++ b/src/sys/quota.rs @@ -21,6 +21,7 @@ use crate::errno::Errno; struct QuotaCmd(QuotaSubCmd, QuotaType); impl QuotaCmd { + #[allow(unused_unsafe)] fn as_int(&self) -> c_int { unsafe { libc::QCMD(self.0 as i32, self.1 as i32) } } -- cgit v1.2.3