Skip to content

Commit 699699d

Browse files
committed
chore: clippy
1 parent 46be42c commit 699699d

File tree

1 file changed

+7
-4
lines changed
  • crates/cheatcodes/src

1 file changed

+7
-4
lines changed

crates/cheatcodes/src/fs.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl Cheatcode for ffiCall {
544544
let stderr = String::from_utf8_lossy(&output.stderr);
545545
warn!(target: "cheatcodes", ?input, ?stderr, "ffi command wrote to stderr");
546546
}
547-
547+
548548
// We already hex-decoded the stdout in the `ffi` helper function.
549549
Ok(output.stdout.abi_encode())
550550
}
@@ -900,7 +900,7 @@ mod tests {
900900
#[test]
901901
fn test_ffi_fails_on_error_code() {
902902
let mut cheats = cheats();
903-
903+
904904
// Use a command that is guaranteed to fail with a non-zero exit code on any platform.
905905
#[cfg(unix)]
906906
let args = vec!["false".to_string()];
@@ -911,10 +911,13 @@ mod tests {
911911

912912
// Assert that the cheatcode returned an error.
913913
assert!(result.is_err(), "Expected ffi cheatcode to fail, but it succeeded");
914-
914+
915915
// Assert that the error message contains the expected information.
916916
let err_msg = result.unwrap_err().to_string();
917-
assert!(err_msg.contains("exited with code 1"), "Error message did not contain exit code: {}", err_msg);
917+
assert!(
918+
err_msg.contains("exited with code 1"),
919+
"Error message did not contain exit code: {err_msg}"
920+
);
918921
}
919922

920923
#[test]

0 commit comments

Comments
 (0)