Skip to content

Commit c0345f8

Browse files
committed
Use relative import paths rather than absolute
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.
1 parent ad40e69 commit c0345f8

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)