Skip to content
Snippets Groups Projects
Commit 53fc5b2e authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

clippy

parent acf72749
No related branches found
No related tags found
1 merge request!15update to runtime 800
...@@ -30,13 +30,13 @@ pub async fn handle_command(_data: Data, command: Subcommand) -> Result<(), Gcli ...@@ -30,13 +30,13 @@ pub async fn handle_command(_data: Data, command: Subcommand) -> Result<(), Gcli
}; };
println!("Pubkey (hex): 0x{}", hex::encode(raw_pubkey)); println!("Pubkey (hex): 0x{}", hex::encode(raw_pubkey));
let address: AccountId = sp_core::ed25519::Public(raw_pubkey).into(); let address: AccountId = sp_core::ed25519::Public(raw_pubkey).into();
println!("Address (SS58): {}", address.to_string()); println!("Address (SS58): {}", address);
} }
Subcommand::Prompt => { Subcommand::Prompt => {
let keypair = prompt_secret_cesium(); let keypair = prompt_secret_cesium();
println!("Pubkey: {}", bs58::encode(keypair.pkey).into_string()); println!("Pubkey: {}", bs58::encode(keypair.pkey).into_string());
let address: AccountId = keypair.pkey.into(); let address: AccountId = keypair.pkey.into();
println!("Address: {}", address.to_string()); println!("Address: {}", address);
} }
} }
Ok(()) Ok(())
......
...@@ -139,7 +139,7 @@ async fn main() -> Result<(), GcliError> { ...@@ -139,7 +139,7 @@ async fn main() -> Result<(), GcliError> {
if let Err(ref e) = result { if let Err(ref e) = result {
println!("{}", e) println!("{}", e)
} }
println!(""); println!();
// still return result for detailed error message // still return result for detailed error message
result result
// Ok(()) // Ok(())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment