File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl<S: PageSize> PhysFrameRange<S> {
118
118
/// Returns whether the range contains no frames.
119
119
#[ inline]
120
120
pub fn is_empty ( & self ) -> bool {
121
- ! ( self . start < self . end )
121
+ self . start >= self . end
122
122
}
123
123
}
124
124
@@ -159,7 +159,7 @@ impl<S: PageSize> PhysFrameRangeInclusive<S> {
159
159
/// Returns whether the range contains no frames.
160
160
#[ inline]
161
161
pub fn is_empty ( & self ) -> bool {
162
- ! ( self . start < = self . end )
162
+ self . start > = self . end
163
163
}
164
164
}
165
165
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ pub struct PageRange<S: PageSize = Size4KiB> {
249
249
impl < S : PageSize > PageRange < S > {
250
250
/// Returns wether this range contains no pages.
251
251
pub fn is_empty ( & self ) -> bool {
252
- ! ( self . start < self . end )
252
+ self . start >= self . end
253
253
}
254
254
}
255
255
@@ -300,7 +300,7 @@ pub struct PageRangeInclusive<S: PageSize = Size4KiB> {
300
300
impl < S : PageSize > PageRangeInclusive < S > {
301
301
/// Returns wether this range contains no pages.
302
302
pub fn is_empty ( & self ) -> bool {
303
- ! ( self . start < = self . end )
303
+ self . start > = self . end
304
304
}
305
305
}
306
306
You can’t perform that action at this time.
0 commit comments