Skip to content

Commit

Permalink
Fix lint failure
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Dec 27, 2023
1 parent a50e8f1 commit bfd48f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/byond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub fn catch_panic<F>(f: F) -> Result<String, Error>
where
F: FnOnce() -> Result<String, Error> + std::panic::UnwindSafe,
{
match std::panic::catch_unwind(|| f()) {
match std::panic::catch_unwind(f) {
Ok(o) => o,
Err(e) => {
let message: Option<String> = e
Expand Down
2 changes: 1 addition & 1 deletion src/iconforge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn cache_valid(input_hash: &str, dmi_hashes_in: &str, sprites_in: &str) -> Resul
if fail_reason.read().unwrap().is_some() {
return;
}
*fail_reason.write().unwrap() = Some(format!("ERROR: Error while hashing dmi_path '{}': {}", dmi_path, err.to_string()));
*fail_reason.write().unwrap() = Some(format!("ERROR: Error while hashing dmi_path '{}': {}", dmi_path, err));
}
}
}
Expand Down

0 comments on commit bfd48f1

Please sign in to comment.