File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ impl LoadedImage {
95
95
///
96
96
/// [`load_options_as_cstr16`]: `Self::load_options_as_cstr16`
97
97
#[ must_use]
98
- pub fn load_options_as_bytes ( & self ) -> Option < & [ u8 ] > {
98
+ pub const fn load_options_as_bytes ( & self ) -> Option < & [ u8 ] > {
99
99
if self . 0 . load_options . is_null ( ) {
100
100
None
101
101
} else {
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl MemoryProtection {
92
92
}
93
93
94
94
/// Convert a byte `Range` to `(base_address, length)`.
95
- fn range_to_base_and_len ( r : Range < PhysicalAddress > ) -> ( PhysicalAddress , PhysicalAddress ) {
95
+ const fn range_to_base_and_len ( r : Range < PhysicalAddress > ) -> ( PhysicalAddress , PhysicalAddress ) {
96
96
( r. start , r. end . checked_sub ( r. start ) . unwrap ( ) )
97
97
}
98
98
You can’t perform that action at this time.
0 commit comments