Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
  • Loading branch information
koushiro committed Jan 20, 2022
1 parent fe24463 commit 38f7b7c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/cli/src/params/network_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,15 @@ impl NetworkParams {
// Activate if the user explicitly requested local discovery, `--dev` is given or the
// chain type is `Local`/`Development`
let allow_non_globals_in_dht =
self.discover_local
|| is_dev || matches!(chain_type, ChainType::Local | ChainType::Development);
self.discover_local ||
is_dev || matches!(chain_type, ChainType::Local | ChainType::Development);

let allow_private_ipv4 = match (self.allow_private_ipv4, self.no_private_ipv4) {
(true, true) => unreachable!("`*_private_ipv4` flags are mutually exclusive; qed"),
(true, false) => true,
(false, true) => false,
(false, false) => {
is_dev || matches!(chain_type, ChainType::Local | ChainType::Development)
},
(false, false) =>
is_dev || matches!(chain_type, ChainType::Local | ChainType::Development),
};

NetworkConfiguration {
Expand Down

0 comments on commit 38f7b7c

Please sign in to comment.