From 3586c143eaef1a0e68c8fce2ee16cdfe68457496 Mon Sep 17 00:00:00 2001 From: Alexander Kiselev Date: Thu, 5 Feb 2026 17:14:19 -0800 Subject: [PATCH] style: rustfmt formatting fixes Co-Authored-By: Claude Opus 4.6 --- tests/patch_tests.rs | 12 +++++++++--- tests/symbol_tests.rs | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/patch_tests.rs b/tests/patch_tests.rs index 636bb6e..0ff5017 100644 --- a/tests/patch_tests.rs +++ b/tests/patch_tests.rs @@ -44,7 +44,9 @@ fn test_patch_bytes_success() { // Patching at code addresses may conflict with existing instructions in Ghidra assert!( - result.exit_code == 0 || result.stderr.contains("conflict") || result.stderr.contains("Memory change"), + result.exit_code == 0 + || result.stderr.contains("conflict") + || result.stderr.contains("Memory change"), "Expected success or instruction conflict, got: stderr={}", result.stderr ); @@ -72,7 +74,9 @@ fn test_patch_nop_success() { // NOP at code address may conflict with existing instructions assert!( - result.exit_code == 0 || result.stderr.contains("conflict") || result.stderr.contains("Memory change"), + result.exit_code == 0 + || result.stderr.contains("conflict") + || result.stderr.contains("Memory change"), "Expected success or instruction conflict, got: stderr={}", result.stderr ); @@ -140,7 +144,9 @@ fn test_patch_at_function_boundary() { // Patching may succeed or fail with instruction conflict depending on Ghidra version // Just verify it doesn't crash/hang assert!( - result.exit_code == 0 || result.stderr.contains("conflict") || result.stderr.contains("Memory change"), + result.exit_code == 0 + || result.stderr.contains("conflict") + || result.stderr.contains("Memory change"), "Expected success or instruction conflict error, got exit_code={}, stderr={}", result.exit_code, result.stderr diff --git a/tests/symbol_tests.rs b/tests/symbol_tests.rs index 9faacfc..f4310f7 100644 --- a/tests/symbol_tests.rs +++ b/tests/symbol_tests.rs @@ -6,7 +6,9 @@ use serial_test::serial; #[macro_use] mod common; -use common::{ensure_test_project, get_function_address, get_function_addresses, DaemonTestHarness}; +use common::{ + ensure_test_project, get_function_address, get_function_addresses, DaemonTestHarness, +}; const TEST_PROJECT: &str = "symbol-test"; const TEST_PROGRAM: &str = "sample_binary";