Skip to content

Commit

Permalink
chore:interopnet&devnet:fix build error (#1162)
Browse files Browse the repository at this point in the history
* chore:interopnet&devnet:fix build error

Signed-off-by: detailyang <detailyang@gmail.com>

* chore:style:apply cargo clippy

Signed-off-by: detailyang <detailyang@gmail.com>

Co-authored-by: Eric Tu <6364934+ec2@users.noreply.github.com>
  • Loading branch information
detailyang and ec2 authored Jun 14, 2021
1 parent 992e69e commit 132884d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions types/networks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,30 @@ mod mainnet;
#[cfg(feature = "mainnet")]
pub use self::mainnet::*;

#[cfg(all(feature = "interopnet", not(feature = "devnet")))]
#[cfg(all(
feature = "interopnet",
not(feature = "devnet"),
not(feature = "mainnet")
))]
mod interopnet;
#[cfg(all(feature = "interopnet", not(feature = "devnet")))]
#[cfg(all(
feature = "interopnet",
not(feature = "devnet"),
not(feature = "mainnet")
))]
pub use self::interopnet::*;

#[cfg(all(feature = "devnet", not(feature = "interopnet")))]
#[cfg(all(
feature = "devnet",
not(feature = "interopnet"),
not(feature = "mainnet")
))]
mod devnet;
#[cfg(all(feature = "devnet", not(feature = "interopnet")))]
#[cfg(all(
feature = "devnet",
not(feature = "interopnet"),
not(feature = "mainnet")
))]
pub use self::devnet::*;

/// Defines the different hard fork parameters.
Expand Down

0 comments on commit 132884d

Please sign in to comment.