summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/backend/linux_raw/reg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/backend/linux_raw/reg.rs')
-rw-r--r--vendor/rustix/src/backend/linux_raw/reg.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/rustix/src/backend/linux_raw/reg.rs b/vendor/rustix/src/backend/linux_raw/reg.rs
index afe99c5f4..206031dde 100644
--- a/vendor/rustix/src/backend/linux_raw/reg.rs
+++ b/vendor/rustix/src/backend/linux_raw/reg.rs
@@ -16,6 +16,7 @@
use super::c;
use super::fd::RawFd;
use core::marker::PhantomData;
+use core::ops::Range;
pub(super) trait ToAsm: private::Sealed {
/// Convert `self` to a `usize` ready to be passed to a syscall
@@ -188,7 +189,7 @@ impl<Num: RetNumber> RetReg<Num> {
}
#[inline]
- pub(super) fn is_in_range(&self, range: core::ops::Range<isize>) -> bool {
+ pub(super) fn is_in_range(&self, range: Range<isize>) -> bool {
range.contains(&(self.raw as isize))
}
}