File tree Expand file tree Collapse file tree 2 files changed +734
-1
lines changed
src/structures/paging/mapper Expand file tree Collapse file tree 2 files changed +734
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ pub use self::offset_page_table::OffsetPageTable;
6
6
#[ cfg( feature = "instructions" ) ]
7
7
pub use self :: recursive_page_table:: { InvalidPageTable , RecursivePageTable } ;
8
8
9
+ use core:: convert:: Infallible ;
10
+
9
11
use crate :: structures:: paging:: {
10
12
frame:: PhysFrameRange ,
11
13
frame_alloc:: { FrameAllocator , FrameDeallocator } ,
@@ -744,6 +746,12 @@ pub enum UnmapError {
744
746
InvalidFrameAddress ( PhysAddr ) ,
745
747
}
746
748
749
+ impl From < Infallible > for UnmapError {
750
+ fn from ( i : Infallible ) -> Self {
751
+ match i { }
752
+ }
753
+ }
754
+
747
755
/// An error indicating that an `update_flags` call failed.
748
756
#[ derive( Debug ) ]
749
757
pub enum FlagUpdateError {
@@ -754,6 +762,12 @@ pub enum FlagUpdateError {
754
762
ParentEntryHugePage ,
755
763
}
756
764
765
+ impl From < Infallible > for FlagUpdateError {
766
+ fn from ( i : Infallible ) -> Self {
767
+ match i { }
768
+ }
769
+ }
770
+
757
771
/// An error indicating that an `translate` call failed.
758
772
#[ derive( Debug ) ]
759
773
pub enum TranslateError {
You can’t perform that action at this time.
0 commit comments