Skip to content

Commit ddf2548

Browse files
committed
Remove unused variable prefix in set_test_offer
Cleans up the set_test_offer method by removing the underscore from the offer parameter name. Changes: - Renamed `_offer` to `offer` to reflect that the variable is actively used within the method body. - Ensures the code adheres to standard Rust naming conventions for used variables. This is a minor cleanup of the test-only API used for HRN integration testing.
1 parent 1eaba4e commit ddf2548

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/payment/unified.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ impl UnifiedPayment {
350350
/// offers allow us to bypass this resolution step and test the subsequent payment flow.
351351
///
352352
/// [BIP 353]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
353-
pub fn set_test_offer(&self, _offer: Offer) {
354-
let _ = self.test_offer.lock().map(|mut guard| *guard = Some(_offer)).map_err(|e| {
353+
pub fn set_test_offer(&self, offer: Offer) {
354+
let _ = self.test_offer.lock().map(|mut guard| *guard = Some(offer)).map_err(|e| {
355355
log_error!(self.logger, "Failed to set test offer due to poisoned lock: {:?}", e)
356356
});
357357
}

0 commit comments

Comments
 (0)