diff --git a/client/cli/src/lib.rs b/client/cli/src/lib.rs index 93a25baf6bbd9..1e8d40cb0f8c6 100644 --- a/client/cli/src/lib.rs +++ b/client/cli/src/lib.rs @@ -760,7 +760,7 @@ fn fill_config_keystore_in_memory(config: &mut sc_service::Configuratio { match &mut config.keystore { cfg @ KeystoreConfig::None => { *cfg = KeystoreConfig::InMemory; Ok(()) }, - _ => Err(format!("Keystore config specified when it should not be!")), + _ => Err("Keystore config specified when it should not be!".into()), } }