diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-12-05 00:07:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 00:07:02 +0000 |
commit | e2257dbb971fa974cf56f00a31d739a7e583e5b8 (patch) | |
tree | de6ea5876b9bb965be5c57268cec7ec274679f84 /src/sys/quota.rs | |
parent | e756c967e837a0b3c8bb785b8bb56dde1f6c05eb (diff) | |
parent | 2b827ad79c5de4c7745ea55a25a2a2f3528056df (diff) | |
download | nix-e2257dbb971fa974cf56f00a31d739a7e583e5b8.zip |
Merge #1911
1911: Cleanup old Clippy directives. r=rtzoeller a=asomers
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'src/sys/quota.rs')
-rw-r--r-- | src/sys/quota.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sys/quota.rs b/src/sys/quota.rs index b3c44ca7..a32d07aa 100644 --- a/src/sys/quota.rs +++ b/src/sys/quota.rs @@ -21,9 +21,8 @@ use std::{mem, ptr}; 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) } + libc::QCMD(self.0 as i32, self.1 as i32) } } |