Skip to content

Commit 9b4daa4

Browse files
committed
Merge rust-bitcoin#4665: Use relative import paths rather than absolute
c0345f8 Use relative import paths rather than absolute (Martin Habovstiak) Pull request description: When doing large refactorings such as moving entire modules around referring to items defined in a parent module by mentioning `crate` is umbersome since the paths change and make the move confusing. It also obscures the fact that some concepts are related. This changes a few paths to relative so that the refactoring in the future will be easier. ACKs for top commit: apoelstra: ACK c0345f8; successfully ran local tests; lgtm tcharding: ACK c0345f8 Tree-SHA512: 3c6e774c81ccdaa5b27b06f25e80385dd0972232a3267cdabb671c86ba86feaa2672185815430ad8efa1cf3888e05c897f5c43d8750d6a071bd970570d4574cb
2 parents a000230 + c0345f8 commit 9b4daa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bitcoin/src/network/params.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@
6262
6363
use units::{BlockHeight, BlockHeightInterval};
6464

65-
use crate::network::Network;
65+
use super::{Network, TestnetVersion};
6666
#[cfg(doc)]
6767
use crate::pow::CompactTarget;
6868
use crate::pow::Target;
69-
use crate::TestnetVersion;
7069

7170
/// Parameters that influence chain consensus.
7271
#[non_exhaustive]

0 commit comments

Comments
 (0)