summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/backend/linux_raw/mm/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/backend/linux_raw/mm/types.rs')
-rw-r--r--vendor/rustix/src/backend/linux_raw/mm/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/rustix/src/backend/linux_raw/mm/types.rs b/vendor/rustix/src/backend/linux_raw/mm/types.rs
index a58dd76be..a34c41f4f 100644
--- a/vendor/rustix/src/backend/linux_raw/mm/types.rs
+++ b/vendor/rustix/src/backend/linux_raw/mm/types.rs
@@ -197,12 +197,12 @@ pub enum Advice {
LinuxPopulateWrite = linux_raw_sys::general::MADV_POPULATE_WRITE,
}
+#[allow(non_upper_case_globals)]
impl Advice {
/// `POSIX_MADV_DONTNEED`
///
/// On Linux, this is mapped to `POSIX_MADV_NORMAL` because
/// Linux's `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See
/// `LinuxDontNeed` for the Linux behavior.
- #[allow(non_upper_case_globals)]
pub const DontNeed: Self = Self::Normal;
}