Skip to content

Commit 3d63755

Browse files
committed
Rename unified_qr module to unified
Rename the source file for the Unified QR payment logic from unified_qr.rs to unified.rs. This change is made in preparation for expanding the module's scope beyond just QR code payment processing.
1 parent 37045f4 commit 3d63755

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/payment/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mod bolt12;
1313
mod onchain;
1414
mod spontaneous;
1515
pub(crate) mod store;
16-
mod unified_qr;
16+
mod unified;
1717

1818
pub use bolt11::Bolt11Payment;
1919
pub use bolt12::Bolt12Payment;
@@ -22,4 +22,4 @@ pub use spontaneous::SpontaneousPayment;
2222
pub use store::{
2323
ConfirmationStatus, LSPFeeLimits, PaymentDetails, PaymentDirection, PaymentKind, PaymentStatus,
2424
};
25-
pub use unified_qr::{QrPaymentResult, UnifiedQrPayment};
25+
pub use unified::{QrPaymentResult, UnifiedQrPayment};
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,10 @@ impl DeserializationError for Extras {
308308

309309
#[cfg(test)]
310310
mod tests {
311-
use std::str::FromStr;
312-
313-
use bitcoin::{Address, Network};
314-
315311
use super::*;
316-
use crate::payment::unified_qr::Extras;
312+
use crate::payment::unified::Extras;
313+
use bitcoin::{Address, Network};
314+
use std::str::FromStr;
317315

318316
#[test]
319317
fn parse_uri() {

0 commit comments

Comments
 (0)