@@ -55,7 +55,6 @@ use crate::util::usize_from_u32;
5555use crate :: { boot, Result , StatusExt } ;
5656use core:: fmt:: { Debug , Formatter } ;
5757use core:: marker:: PhantomData ;
58- use core:: mem;
5958use core:: ptr:: { self , NonNull } ;
6059use uefi_raw:: protocol:: console:: {
6160 GraphicsOutputBltOperation , GraphicsOutputModeInformation , GraphicsOutputProtocol ,
@@ -181,7 +180,7 @@ impl GraphicsOutput {
181180 dest_y,
182181 width,
183182 height,
184- px_stride * core :: mem :: size_of :: < BltPixel > ( ) ,
183+ px_stride * size_of :: < BltPixel > ( ) ,
185184 )
186185 . to_result ( ) ,
187186 }
@@ -221,7 +220,7 @@ impl GraphicsOutput {
221220 dest_y,
222221 width,
223222 height,
224- px_stride * core :: mem :: size_of :: < BltPixel > ( ) ,
223+ px_stride * size_of :: < BltPixel > ( ) ,
225224 )
226225 . to_result ( ) ,
227226 }
@@ -620,7 +619,7 @@ impl FrameBuffer<'_> {
620619 #[ inline]
621620 pub unsafe fn write_value < T > ( & mut self , index : usize , value : T ) {
622621 debug_assert ! (
623- index. saturating_add( mem :: size_of:: <T >( ) ) <= self . size,
622+ index. saturating_add( size_of:: <T >( ) ) <= self . size,
624623 "Frame buffer accessed out of bounds"
625624 ) ;
626625 let ptr = self . base . add ( index) . cast :: < T > ( ) ;
@@ -643,7 +642,7 @@ impl FrameBuffer<'_> {
643642 #[ must_use]
644643 pub unsafe fn read_value < T > ( & self , index : usize ) -> T {
645644 debug_assert ! (
646- index. saturating_add( mem :: size_of:: <T >( ) ) <= self . size,
645+ index. saturating_add( size_of:: <T >( ) ) <= self . size,
647646 "Frame buffer accessed out of bounds"
648647 ) ;
649648 ( self . base . add ( index) as * const T ) . read_volatile ( )
0 commit comments