@@ -55,7 +55,6 @@ use crate::util::usize_from_u32;
55
55
use crate :: { boot, Result , StatusExt } ;
56
56
use core:: fmt:: { Debug , Formatter } ;
57
57
use core:: marker:: PhantomData ;
58
- use core:: mem;
59
58
use core:: ptr:: { self , NonNull } ;
60
59
use uefi_raw:: protocol:: console:: {
61
60
GraphicsOutputBltOperation , GraphicsOutputModeInformation , GraphicsOutputProtocol ,
@@ -181,7 +180,7 @@ impl GraphicsOutput {
181
180
dest_y,
182
181
width,
183
182
height,
184
- px_stride * core :: mem :: size_of :: < BltPixel > ( ) ,
183
+ px_stride * size_of :: < BltPixel > ( ) ,
185
184
)
186
185
. to_result ( ) ,
187
186
}
@@ -221,7 +220,7 @@ impl GraphicsOutput {
221
220
dest_y,
222
221
width,
223
222
height,
224
- px_stride * core :: mem :: size_of :: < BltPixel > ( ) ,
223
+ px_stride * size_of :: < BltPixel > ( ) ,
225
224
)
226
225
. to_result ( ) ,
227
226
}
@@ -620,7 +619,7 @@ impl FrameBuffer<'_> {
620
619
#[ inline]
621
620
pub unsafe fn write_value < T > ( & mut self , index : usize , value : T ) {
622
621
debug_assert ! (
623
- index. saturating_add( mem :: size_of:: <T >( ) ) <= self . size,
622
+ index. saturating_add( size_of:: <T >( ) ) <= self . size,
624
623
"Frame buffer accessed out of bounds"
625
624
) ;
626
625
let ptr = self . base . add ( index) . cast :: < T > ( ) ;
@@ -643,7 +642,7 @@ impl FrameBuffer<'_> {
643
642
#[ must_use]
644
643
pub unsafe fn read_value < T > ( & self , index : usize ) -> T {
645
644
debug_assert ! (
646
- index. saturating_add( mem :: size_of:: <T >( ) ) <= self . size,
645
+ index. saturating_add( size_of:: <T >( ) ) <= self . size,
647
646
"Frame buffer accessed out of bounds"
648
647
) ;
649
648
( self . base . add ( index) as * const T ) . read_volatile ( )
0 commit comments