Skip to content

Commit ceed11c

Browse files
committed
refactoring(client-lib): reorganize imports
1 parent db195f4 commit ceed11c

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

mithril-client/src/message.rs

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
use anyhow::Context;
2-
#[cfg(feature = "fs")]
3-
use slog::warn;
42
use slog::{Logger, o};
53
#[cfg(feature = "fs")]
6-
use std::fmt;
7-
#[cfg(feature = "fs")]
8-
use std::ops::RangeInclusive;
9-
#[cfg(feature = "fs")]
10-
use std::path::{Path, PathBuf};
11-
#[cfg(feature = "fs")]
12-
use std::sync::Arc;
13-
#[cfg(feature = "fs")]
14-
use thiserror::Error;
4+
use {
5+
slog::warn,
6+
std::{
7+
fmt,
8+
ops::RangeInclusive,
9+
path::{Path, PathBuf},
10+
sync::Arc,
11+
},
12+
thiserror::Error,
13+
};
1514

16-
#[cfg(feature = "fs")]
17-
use crate::cardano_database_client::{ImmutableFileRange, VerifiedDigests};
1815
#[cfg(feature = "fs")]
1916
use mithril_cardano_node_internal_database::{
2017
IMMUTABLE_DIR,
2118
digesters::{CardanoImmutableDigester, ImmutableDigester, ImmutableDigesterError},
2219
};
23-
use mithril_common::logging::LoggerExtensions;
24-
use mithril_common::protocol::SignerBuilder;
25-
use mithril_common::signable_builder::CardanoStakeDistributionSignableBuilder;
2620
#[cfg(feature = "fs")]
2721
use mithril_common::{
2822
crypto_helper::MKTreeNode,
2923
entities::{ImmutableFileName, ImmutableFileNumber, SignedEntityType},
3024
messages::{CardanoDatabaseSnapshotMessage, CertificateMessage},
3125
};
26+
use mithril_common::{
27+
logging::LoggerExtensions, protocol::SignerBuilder,
28+
signable_builder::CardanoStakeDistributionSignableBuilder,
29+
};
3230

33-
#[cfg(feature = "fs")]
34-
use crate::MithrilError;
3531
use crate::{
3632
CardanoStakeDistribution, MithrilCertificate, MithrilResult, MithrilSigner,
3733
MithrilStakeDistribution, VerifiedCardanoTransactions,
3834
common::{ProtocolMessage, ProtocolMessagePartKey},
3935
};
36+
#[cfg(feature = "fs")]
37+
use crate::{
38+
MithrilError,
39+
cardano_database_client::{ImmutableFileRange, VerifiedDigests},
40+
};
4041

4142
cfg_fs! {
4243
const MERKLE_PROOF_COMPUTATION_ERROR:&str = "Merkle proof computation failed";

0 commit comments

Comments
 (0)