Skip to content

Commit

Permalink
v0.3.6: Added missing error handling, fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
seritools committed Apr 26, 2019
1 parent 28f75cd commit 39be341
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "devilution-comparer"
version = "0.3.5"
version = "0.3.6"
authors = ["Dennis Duda <git@seri.tools>"]
edition = '2018'

Expand Down
6 changes: 3 additions & 3 deletions src/generate_full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn generate_full_orig(
stdout_lock,
"Note: Skipping '{}' because no size was defined.",
func.name
);
).map_err(IoError)?;
continue;
}
Some(size) => size,
Expand Down Expand Up @@ -127,15 +127,15 @@ fn generate_full_pdb(
stdout_lock,
"WARN: Function '{}' was not found in the PDB.",
func.name
);
).map_err(IoError)?;
}
}
for func in pdb_funcs {
writeln!(
stdout_lock,
"WARN: Function '{}' was not found in the config.",
func.1.name
);
).map_err(IoError)?;
}
Ok(())
})?;
Expand Down
8 changes: 4 additions & 4 deletions src/hexformat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ where
fn fmt(&self, f: &mut Formatter) -> FmtResult {
if self.0.is_positive() {
if f.sign_plus() {
write!(f, "+");
write!(f, "+")?;
}
if f.alternate() {
write!(f, "0x");
write!(f, "0x")?;
}
write!(f, "{:X}", self.0)
} else {
write!(f, "-");
write!(f, "-")?;
if f.alternate() {
write!(f, "0x");
write!(f, "0x")?;
}
write!(f, "{:X}", -self.0)
}
Expand Down

0 comments on commit 39be341

Please sign in to comment.