@@ -98,12 +98,20 @@ fn main_inner(image: Handle, mut st: SystemTable<Boot>) -> Status {
98
98
} ;
99
99
100
100
#[ allow( deprecated) ]
101
- if config. frame_buffer_physical . minimum_framebuffer_height . is_none ( ) {
101
+ if config
102
+ . frame_buffer_physical
103
+ . minimum_framebuffer_height
104
+ . is_none ( )
105
+ {
102
106
config. frame_buffer_physical . minimum_framebuffer_height =
103
107
kernel. config . frame_buffer . minimum_framebuffer_height ;
104
108
}
105
109
#[ allow( deprecated) ]
106
- if config. frame_buffer_physical . minimum_framebuffer_width . is_none ( ) {
110
+ if config
111
+ . frame_buffer_physical
112
+ . minimum_framebuffer_width
113
+ . is_none ( )
114
+ {
107
115
config. frame_buffer_physical . minimum_framebuffer_width =
108
116
kernel. config . frame_buffer . minimum_framebuffer_width ;
109
117
}
@@ -493,8 +501,12 @@ fn init_logger(
493
501
res. 1 >= height && res. 0 >= width
494
502
} )
495
503
. last ( ) ,
496
- ( Some ( height) , None ) => modes. filter ( |m| m. info ( ) . resolution ( ) . 1 >= height) . last ( ) ,
497
- ( None , Some ( width) ) => modes. filter ( |m| m. info ( ) . resolution ( ) . 0 >= width) . last ( ) ,
504
+ ( Some ( height) , None ) => {
505
+ modes. filter ( |m| m. info ( ) . resolution ( ) . 1 >= height) . last ( )
506
+ }
507
+ ( None , Some ( width) ) => {
508
+ modes. filter ( |m| m. info ( ) . resolution ( ) . 0 >= width) . last ( )
509
+ }
498
510
_ => None ,
499
511
}
500
512
} else {
@@ -514,8 +526,12 @@ fn init_logger(
514
526
res. 1 >= height && res. 0 >= width
515
527
} )
516
528
. last ( ) ,
517
- ( Some ( height) , None ) => modes. filter ( |m| m. info ( ) . resolution ( ) . 1 >= height) . last ( ) ,
518
- ( None , Some ( width) ) => modes. filter ( |m| m. info ( ) . resolution ( ) . 0 >= width) . last ( ) ,
529
+ ( Some ( height) , None ) => {
530
+ modes. filter ( |m| m. info ( ) . resolution ( ) . 1 >= height) . last ( )
531
+ }
532
+ ( None , Some ( width) ) => {
533
+ modes. filter ( |m| m. info ( ) . resolution ( ) . 0 >= width) . last ( )
534
+ }
519
535
_ => None ,
520
536
}
521
537
}
0 commit comments