File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,6 @@ impl<D: Read + Seek> FileSystem<D> {
192
192
} ,
193
193
} ;
194
194
195
- writeln ! ( screen:: Writer , "entry: {entry:?}" ) . unwrap ( ) ;
196
-
197
195
if entry. is_directory ( ) {
198
196
None
199
197
} else {
@@ -362,27 +360,6 @@ impl<'a> DirectoryEntry<'a> {
362
360
}
363
361
}
364
362
365
- impl core:: fmt:: Debug for DirectoryEntry < ' _ > {
366
- fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
367
- struct NamePrinter < ' a > ( & ' a DirectoryEntry < ' a > ) ;
368
- impl core:: fmt:: Debug for NamePrinter < ' _ > {
369
- fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
370
- for char in self . 0 . name ( ) . filter_map ( |e| e. ok ( ) ) {
371
- write ! ( f, "{char}" ) ?;
372
- }
373
- Ok ( ( ) )
374
- }
375
- }
376
-
377
- f. debug_struct ( "DirectoryEntry" )
378
- . field ( "name" , & NamePrinter ( self ) )
379
- . field ( "file_size" , & self . file_size )
380
- . field ( "first_cluster" , & self . first_cluster )
381
- . field ( "attributes" , & self . attributes )
382
- . finish ( )
383
- }
384
- }
385
-
386
363
#[ derive( Debug ) ]
387
364
struct RawDirectoryEntryNormal < ' a > {
388
365
short_filename_main : & ' a str ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn second_stage_end() -> *const u8 {
27
27
#[ no_mangle]
28
28
#[ link_section = ".start" ]
29
29
pub extern "C" fn _start ( disk_number : u16 , partition_table_start : * const u8 ) {
30
- writeln ! ( screen:: Writer , " -> SECOND STAGE" ) . unwrap ( ) ;
30
+ screen:: Writer . write_str ( " -> SECOND STAGE" ) . unwrap ( ) ;
31
31
32
32
// parse partition table
33
33
let partitions = {
You can’t perform that action at this time.
0 commit comments