Skip to content

Commit 640d425

Browse files
author
Tom Dohrmann
committed
remove some PartialOrd, Ord derives
1 parent f156013 commit 640d425

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub mod registers;
6767
pub mod structures;
6868

6969
/// Represents a protection ring level.
70-
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
70+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
7171
#[repr(u8)]
7272
pub enum PrivilegeLevel {
7373
/// Privilege-level 0 (most privilege): This level is used by critical system-software

src/structures/idt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ impl fmt::Debug for SelectorErrorCode {
10011001
/// The possible descriptor table values.
10021002
///
10031003
/// Used by the [`SelectorErrorCode`] to indicate which table caused the error.
1004-
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
1004+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
10051005
pub enum DescriptorTable {
10061006
/// Global Descriptor Table.
10071007
Gdt,

src/structures/paging/frame.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<S: PageSize> Sub<PhysFrame<S>> for PhysFrame<S> {
133133
}
134134

135135
/// An range of physical memory frames, exclusive the upper bound.
136-
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
136+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
137137
#[repr(C)]
138138
pub struct PhysFrameRange<S: PageSize = Size4KiB> {
139139
/// The start of the range, inclusive.
@@ -175,7 +175,7 @@ impl<S: PageSize> fmt::Debug for PhysFrameRange<S> {
175175
}
176176

177177
/// An range of physical memory frames, inclusive the upper bound.
178-
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
178+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
179179
#[repr(C)]
180180
pub struct PhysFrameRangeInclusive<S: PageSize = Size4KiB> {
181181
/// The start of the range, inclusive.

src/structures/paging/page.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl<S: PageSize> Sub<Self> for Page<S> {
279279
}
280280

281281
/// A range of pages with exclusive upper bound.
282-
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
282+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
283283
#[repr(C)]
284284
pub struct PageRange<S: PageSize = Size4KiB> {
285285
/// The start of the range, inclusive.
@@ -332,7 +332,7 @@ impl<S: PageSize> fmt::Debug for PageRange<S> {
332332
}
333333

334334
/// A range of pages with inclusive upper bound.
335-
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
335+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
336336
#[repr(C)]
337337
pub struct PageRangeInclusive<S: PageSize = Size4KiB> {
338338
/// The start of the range, inclusive.

0 commit comments

Comments
 (0)