sys: make acl constants rustfmt safe

there's not much better one can do here..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-10 17:38:51 +02:00
parent 0a651e00a9
commit 4cdeee64dc

View File

@ -10,10 +10,14 @@ use std::os::unix::io::RawFd;
use std::path::Path;
use std::ptr;
use libc::{c_char, c_int, c_uint, c_void};
use libc::{c_char, c_int, c_void};
use nix::errno::Errno;
use nix::NixPath;
#[rustfmt::skip]
mod constants {
use libc::{c_int, c_uint};
// from: acl/include/acl.h
pub const ACL_UNDEFINED_ID: u32 = 0xffffffff;
// acl_perm_t values
@ -46,6 +50,8 @@ pub const ACL_NEXT_ENTRY: c_int = 1;
pub const ACL_EA_ACCESS: &str = "system.posix_acl_access";
pub const ACL_EA_DEFAULT: &str = "system.posix_acl_default";
pub const ACL_EA_VERSION: u32 = 0x0002;
}
pub use constants::*;
#[link(name = "acl")]
extern "C" {