Skip to content

Commit c6aaea6

Browse files
committed
xa65: Fix minor style issues
Signed-off-by: Miquel Sabaté Solà <[email protected]>
1 parent 121995b commit c6aaea6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/xa65/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fs::File;
22
use std::io::prelude::*;
3-
use std::path::PathBuf;
3+
use std::path::{Path, PathBuf};
44
use std::process::Command;
55

66
/// Version for this program.
@@ -162,7 +162,7 @@ fn hexdump(bin: &PathBuf, src: &PathBuf, dst: &PathBuf) -> bool {
162162
);
163163
return false;
164164
};
165-
if let Err(_) = nasm_file.write_all(nasm.stdout.as_slice()) {
165+
if nasm_file.write_all(nasm.stdout.as_slice()).is_err() {
166166
println!(
167167
"xa65 (warning): could not produce an hexdump of '{}'",
168168
src.display()
@@ -174,7 +174,7 @@ fn hexdump(bin: &PathBuf, src: &PathBuf, dst: &PathBuf) -> bool {
174174

175175
// Attempt to generate 'hexdump' files for both binaries. If this is not
176176
// possible, then it will print a warning and return early.
177-
fn attempt_hexdump(dir: &PathBuf) {
177+
fn attempt_hexdump(dir: &Path) {
178178
let Some(bin) = find_binary("hexdump") else {
179179
println!(
180180
"xa65 (warning): could not find 'hexdump' in your PATH. \

0 commit comments

Comments
 (0)