mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 06:22:39 -04:00
Change imports_granularity
to module
This reduces the overall amount of LoC that imports take up in our codebase by almost 100. It also makes merge-conflicts less likely because there is less grouping together of imports that may lead to layout changes which in turn can cause merge conflicts.
This commit is contained in:
parent
2c8200621d
commit
6d9b21cb47
55 changed files with 389 additions and 483 deletions
|
@ -1,6 +1,8 @@
|
|||
use anyhow::{Context, Result};
|
||||
use libp2p::{core::Multiaddr, PeerId};
|
||||
use std::{path::PathBuf, str::FromStr};
|
||||
use libp2p::core::Multiaddr;
|
||||
use libp2p::PeerId;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use uuid::Uuid;
|
||||
|
||||
pub const DEFAULT_ALICE_MULTIADDR: &str = "/dns4/xmr-btc-asb.coblox.tech/tcp/9876";
|
||||
|
@ -85,7 +87,8 @@ fn parse_monero_address(s: &str) -> Result<monero::Address> {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::cli::command::{DEFAULT_ALICE_MULTIADDR, DEFAULT_ALICE_PEER_ID};
|
||||
use libp2p::{core::Multiaddr, PeerId};
|
||||
use libp2p::core::Multiaddr;
|
||||
use libp2p::PeerId;
|
||||
|
||||
#[test]
|
||||
fn parse_default_alice_peer_id_success() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue