File tree Expand file tree Collapse file tree 2 files changed +740
-1
lines changed
src/structures/paging/mapper Expand file tree Collapse file tree 2 files changed +740
-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 } ,
@@ -752,6 +754,12 @@ pub enum UnmapError {
752
754
InvalidFrameAddress ( PhysAddr ) ,
753
755
}
754
756
757
+ impl From < Infallible > for UnmapError {
758
+ fn from ( i : Infallible ) -> Self {
759
+ match i { }
760
+ }
761
+ }
762
+
755
763
/// An error indicating that an `update_flags` call failed.
756
764
#[ derive( Debug ) ]
757
765
pub enum FlagUpdateError {
@@ -762,6 +770,12 @@ pub enum FlagUpdateError {
762
770
ParentEntryHugePage ,
763
771
}
764
772
773
+ impl From < Infallible > for FlagUpdateError {
774
+ fn from ( i : Infallible ) -> Self {
775
+ match i { }
776
+ }
777
+ }
778
+
765
779
/// An error indicating that an `translate` call failed.
766
780
#[ derive( Debug ) ]
767
781
pub enum TranslateError {
You can’t perform that action at this time.
0 commit comments