From 2b8592e4dc2c9405da98effa5db893e082ac173b Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 7 Nov 2024 21:26:22 -0500 Subject: [PATCH] Fix Clippy warning: simplify error handling --- bdk-ffi/src/tx_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdk-ffi/src/tx_builder.rs b/bdk-ffi/src/tx_builder.rs index da5f9628..c11e6b0b 100644 --- a/bdk-ffi/src/tx_builder.rs +++ b/bdk-ffi/src/tx_builder.rs @@ -332,7 +332,7 @@ mod tests { .finish(&Arc::new(wallet)) { Ok(tx) => println!("Transaction serialized: {}\n", tx.serialize()), - Err(e) => println!("Error: {}", e.to_string()), + Err(e) => eprintln!("Error: {:?}", e), } } else { println!("Failed to retrieve valid policies for keychains.");