File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl VanillaExtractor {
176
176
file. write_u32 :: < LE > ( 0 ) ?; // unused null bytes
177
177
file. write_u32 :: < LE > ( 0x76 ) ?; // Bitmap data offset (hardcoded for now, might wanna get the actual offset)
178
178
179
- let result = file. write_all ( & bitmap. bytes ) . or_else ( |e| Err ( ParseError ( format ! ( "Failed to write bitmap file: {}." , e) ) ) ) ?;
179
+ file. write_all ( & bitmap. bytes ) . or_else ( |e| Err ( ParseError ( format ! ( "Failed to write bitmap file: {}." , e) ) ) ) ?;
180
180
181
181
println ! ( "Extracted bitmap file: {}" , bitmap. name) ;
182
182
}
@@ -242,9 +242,9 @@ impl VanillaExtractor {
242
242
243
243
stage_tbl_path. push ( "stage.sect" ) ;
244
244
245
- let mut stage_tbl_file = std:: fs:: File :: create ( stage_tbl_path) . or_else ( |e| ParseError ( format ! ( "Failed to create stage table file: {}." , e) ) ) ?;
245
+ let mut stage_tbl_file = std:: fs:: File :: create ( stage_tbl_path) . or_else ( |e| Err ( ParseError ( format ! ( "Failed to create stage table file: {}." , e) ) ) ) ?;
246
246
247
- stage_tbl_file. write_all ( byte_slice) . or_else ( |e| ParseError ( format ! ( "Failed to write to stage table file: {}." , e) ) ) ?;
247
+ stage_tbl_file. write_all ( byte_slice) . or_else ( |e| Err ( ParseError ( format ! ( "Failed to write to stage table file: {}." , e) ) ) ) ?;
248
248
Ok ( ( ) )
249
249
}
250
250
}
You can’t perform that action at this time.
0 commit comments