Skip to content

Commit

Permalink
Alter for bypassing clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Sep 18, 2023
1 parent a91798d commit e8011ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/configuration/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
relaychain::{self, RelaychainConfig, RelaychainConfigBuilder},
shared::{
constants::{
CHAIN_NAME_MUST_EXIST, NO_ERR_DEF_BUILDER, RELAY_NOT_NONE, RW_FAILED, THIS_IS_A_BUG,
NO_ERR_DEF_BUILDER, RELAY_NOT_NONE, RW_FAILED, THIS_IS_A_BUG,
VALIDATION_CHECK, VALID_REGEX,
},
helpers::merge_errors_vecs,
Expand Down Expand Up @@ -147,7 +147,7 @@ impl NetworkConfig {
let _ = TryInto::<Chain>::try_into(
parachain
.chain()
.ok_or(&format!("{}", CHAIN_NAME_MUST_EXIST))
.ok_or("chain name must exist")
.unwrap()
.as_str(),
);
Expand Down
1 change: 0 additions & 1 deletion crates/configuration/src/shared/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub const VALID_REGEX: &str = "regex should be valid ";
pub const BORROWABLE: &str = "must be borrowable as mutable ";
pub const RELAY_NOT_NONE: &str = "typestate should ensure the relaychain isn't None at this point ";
pub const SHOULD_COMPILE: &str = "should compile with success ";
pub const CHAIN_NAME_MUST_EXIST: &str = "chain name must exist ";
pub const INFAILABLE: &str = "infaillible ";
pub const NO_ERR_DEF_BUILDER: &str = "should have no errors for default builder ";
pub const RW_FAILED: &str = "should be able to read/write - failed ";
Expand Down

0 comments on commit e8011ce

Please sign in to comment.