From dd317f09655db2de12ba3091a55bbb0b003a1d6b Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Thu, 20 Jul 2023 18:45:51 +0200 Subject: [PATCH] * removed borrow for cli matching * deleted commented out line of now-optimised stdin matching --- demos/rust-cosmos-broadcaster/bin/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demos/rust-cosmos-broadcaster/bin/client.rs b/demos/rust-cosmos-broadcaster/bin/client.rs index e81ea905b4..405849de52 100644 --- a/demos/rust-cosmos-broadcaster/bin/client.rs +++ b/demos/rust-cosmos-broadcaster/bin/client.rs @@ -48,7 +48,7 @@ async fn main() -> anyhow::Result<()> { let sp_address = Recipient::try_from_base58_string("2f499xz7AfEmsdjd9zaxEVMZ4ed5pod2AqomZ74PSdTW.6heKJmwFZMw14Yz7CKF56iyKDaBBssmNWZJHErGg5jgm@HWdr8jgcr32cVGbjisjmwnVF4xrUBRGvbw86F9e3rFzS").unwrap(); - match &cli.command { + match cli.command { Some(Commands::OfflineSignTx(OfflineSignTx { mnemonic, nyx_token_receipient, @@ -70,7 +70,6 @@ async fn main() -> anyhow::Result<()> { let mut input = String::new(); let stdin = std::io::stdin(); - // let _n = stdin.read_line(&mut input).unwrap(); stdin.read_line(&mut input)?; if input.starts_with('y') {