diff --git a/cli/src/command.rs b/cli/src/command.rs index 7b437a2c352d..57647c72fc27 100644 --- a/cli/src/command.rs +++ b/cli/src/command.rs @@ -30,20 +30,18 @@ fn get_exec_name() -> Option { } impl SubstrateCli for Cli { - fn impl_name() -> &'static str { "Parity Polkadot" } + fn impl_name() -> String { "Parity Polkadot".into() } - fn impl_version() -> &'static str { env!("SUBSTRATE_CLI_IMPL_VERSION") } + fn impl_version() -> String { env!("SUBSTRATE_CLI_IMPL_VERSION").into() } - fn description() -> &'static str { env!("CARGO_PKG_DESCRIPTION") } + fn description() -> String { env!("CARGO_PKG_DESCRIPTION").into() } - fn author() -> &'static str { env!("CARGO_PKG_AUTHORS") } + fn author() -> String { env!("CARGO_PKG_AUTHORS").into() } - fn support_url() -> &'static str { "https://github.com/paritytech/polkadot/issues/new" } + fn support_url() -> String { "https://github.com/paritytech/polkadot/issues/new".into() } fn copyright_start_year() -> i32 { 2017 } - fn executable_name() -> &'static str { "polkadot" } - fn load_spec(&self, id: &str) -> std::result::Result, String> { let id = if id == "" { let n = get_exec_name().unwrap_or_default();