diff options
author | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2020-09-12 12:36:27 +0300 |
---|---|---|
committer | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2020-09-13 19:55:22 +0300 |
commit | 4db701dafedf6dacce465bb90d4594628b67dbf8 (patch) | |
tree | 4d12e0554a3eeaf151506ca3862242f042c36546 /src/sys/quota.rs | |
parent | bf77f5042cab5774591d1f63ee2db4589f57dc35 (diff) | |
download | nix-4db701dafedf6dacce465bb90d4594628b67dbf8.zip |
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.
Diffstat (limited to 'src/sys/quota.rs')
-rw-r--r-- | src/sys/quota.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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) } } |