mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-06 05:24:42 -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
|
@ -2,8 +2,10 @@ pub use alice::Alice;
|
|||
pub use bob::Bob;
|
||||
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use std::{fmt::Display, path::Path};
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::Display;
|
||||
use std::path::Path;
|
||||
use uuid::Uuid;
|
||||
|
||||
mod alice;
|
||||
|
@ -123,10 +125,8 @@ where
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::database::{
|
||||
alice::{Alice, AliceEndState},
|
||||
bob::{Bob, BobEndState},
|
||||
};
|
||||
use crate::database::alice::{Alice, AliceEndState};
|
||||
use crate::database::bob::{Bob, BobEndState};
|
||||
|
||||
#[tokio::test]
|
||||
async fn can_write_and_read_to_multiple_keys() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue