Skip to content

Commit 8b9ab38

Browse files
committed
fix: clippy::unnecessary_cast
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent ba4482b commit 8b9ab38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registers/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ mod x86_64 {
296296
#[inline]
297297
pub fn read_pcid() -> (PhysFrame, Pcid) {
298298
let (frame, value) = Cr3::read_raw();
299-
(frame, Pcid::new(value as u16).unwrap())
299+
(frame, Pcid::new(value).unwrap())
300300
}
301301

302302
/// Write a new P4 table address into the CR3 register.

0 commit comments

Comments
 (0)