Skip to content

Commit a9dad7d

Browse files
committed
Use explicit imports in unified.rs tests
Switch the module tests within unified.rs to use explicit use statements instead of glob imports (*). This improves code clarity by clearly indicating which items are being brought into scope.
1 parent c9b7af5 commit a9dad7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/payment/unified.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ impl DeserializationError for Extras {
377377

378378
#[cfg(test)]
379379
mod tests {
380-
use super::*;
381-
use crate::payment::unified::Extras;
380+
use super::{Amount, Bolt11Invoice, Extras, Offer};
382381
use bitcoin::{address::NetworkUnchecked, Address, Network};
383382
use std::str::FromStr;
384383

0 commit comments

Comments
 (0)