Skip to content

Commit dd725bc

Browse files
committed
Rename unified_qr to unified
This rename reflects that this module is a unified payment interface for both QR code payments and HRN payments passed in as a string without scanning a QR code
1 parent 8705214 commit dd725bc

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};

src/payment/unified_qr.rs renamed to src/payment/unified.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,10 @@ impl DeserializationError for Extras {
302302

303303
#[cfg(test)]
304304
mod tests {
305-
use std::str::FromStr;
306-
307-
use bitcoin::{Address, Network};
308-
309305
use super::*;
310-
use crate::payment::unified_qr::Extras;
306+
use crate::payment::unified::Extras;
307+
use bitcoin::{Address, Network};
308+
use std::str::FromStr;
311309

312310
#[test]
313311
fn parse_uri() {

0 commit comments

Comments
 (0)