Skip to content
Snippets Groups Projects
Unverified Commit e8011ce3 authored by Nikos Kontakis's avatar Nikos Kontakis
Browse files

Alter for bypassing clippy

parent a91798dc
Branches
No related merge requests found
......@@ -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,
......@@ -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(),
);
......
......@@ -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 ";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment