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> {
118118 /// Returns whether the range contains no frames.
119119 #[ inline]
120120 pub fn is_empty ( & self ) -> bool {
121- ! ( self . start < self . end )
121+ self . start >= self . end
122122 }
123123}
124124
@@ -159,7 +159,7 @@ impl<S: PageSize> PhysFrameRangeInclusive<S> {
159159 /// Returns whether the range contains no frames.
160160 #[ inline]
161161 pub fn is_empty ( & self ) -> bool {
162- ! ( self . start < = self . end )
162+ self . start > = self . end
163163 }
164164}
165165
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ pub struct PageRange<S: PageSize = Size4KiB> {
249249impl < S : PageSize > PageRange < S > {
250250 /// Returns wether this range contains no pages.
251251 pub fn is_empty ( & self ) -> bool {
252- ! ( self . start < self . end )
252+ self . start >= self . end
253253 }
254254}
255255
@@ -300,7 +300,7 @@ pub struct PageRangeInclusive<S: PageSize = Size4KiB> {
300300impl < S : PageSize > PageRangeInclusive < S > {
301301 /// Returns wether this range contains no pages.
302302 pub fn is_empty ( & self ) -> bool {
303- ! ( self . start < = self . end )
303+ self . start > = self . end
304304 }
305305}
306306
You can’t perform that action at this time.
0 commit comments