[VC, wip] VC rustfmt
This commit is contained in:
		
							parent
							
								
									1c0243ef58
								
							
						
					
					
						commit
						be7bfd842b
					
				|  | @ -1,6 +1,6 @@ | |||
| use core::fmt::Write; | ||||
| use platform::display::{Display, PixelOrder, Size2d, CHARSIZE_X, CHARSIZE_Y}; | ||||
| use platform::mailbox::{self, channel, tag, GpuFb, Mailbox, response::VAL_LEN_FLAG}; | ||||
| use platform::mailbox::{self, channel, response::VAL_LEN_FLAG, tag, GpuFb, Mailbox}; | ||||
| use platform::rpi3::bus2phys; | ||||
| use platform::uart::MiniUart; | ||||
| 
 | ||||
|  | @ -9,10 +9,13 @@ pub struct VC; | |||
| impl VC { | ||||
|     // Use mailbox framebuffer interface to initialize
 | ||||
|     pub fn init_fb(size: Size2d /*, uart: &mut MiniUart*/) -> Option<Display> { | ||||
|         let mut fb_info: GpuFb = GpuFb::new(size, 24); | ||||
|         let mut fb_info = GpuFb::new(size, 24); | ||||
| 
 | ||||
|         //        uart.puts("initing fb_info\n");
 | ||||
|         fb_info.call().map_err(|_| {/*uart.puts("fb_info error\n");*/()}); | ||||
|         fb_info.call().map_err(|_| { | ||||
|             /*uart.puts("fb_info error\n");*/ | ||||
|             () | ||||
|         }); | ||||
| 
 | ||||
|         //        write!(uart, "inited fb_info: {}\n", fb_info);
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue