Skip to content

Commit abcdd67

Browse files
authored
Yet one build fix
1 parent ca28279 commit abcdd67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vanilla.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl VanillaExtractor {
176176
file.write_u32::<LE>(0)?; // unused null bytes
177177
file.write_u32::<LE>(0x76)?; // Bitmap data offset (hardcoded for now, might wanna get the actual offset)
178178

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))))?;
180180

181181
println!("Extracted bitmap file: {}", bitmap.name);
182182
}
@@ -242,9 +242,9 @@ impl VanillaExtractor {
242242

243243
stage_tbl_path.push("stage.sect");
244244

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))))?;
246246

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))))?;
248248
Ok(())
249249
}
250250
}

0 commit comments

Comments
 (0)