Skip to content

Commit 25c0e39

Browse files
committed
fix(open): use result
I wonder why that was not shown when I compiled it
1 parent a4c3a35 commit 25c0e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ fn main() {
99
match env::args().skip(1).next() {
1010
Some(arg) => arg,
1111
None => {
12-
writeln!(stderr(), "usage: open <path-or-url>");
12+
writeln!(stderr(), "usage: open <path-or-url>").ok();
1313
process::exit(1);
1414
}
1515
};
1616

1717
if let Err(err) = open::that(&path_or_url) {
18-
writeln!(stderr(), "An error occourred when opening '{}': {}", path_or_url, err);
18+
writeln!(stderr(), "An error occourred when opening '{}': {}", path_or_url, err).ok();
1919
process::exit(3);
2020
}
2121
}

0 commit comments

Comments
 (0)