From 44e4d49ca0ce46026c183ff472fc02ba50ce85e3 Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Thu, 20 Jul 2023 18:39:52 +0200 Subject: [PATCH] removed unused var when reading stdin --- demos/rust-cosmos-broadcaster/bin/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/rust-cosmos-broadcaster/bin/client.rs b/demos/rust-cosmos-broadcaster/bin/client.rs index e69a7b07f1..6e9b378abe 100644 --- a/demos/rust-cosmos-broadcaster/bin/client.rs +++ b/demos/rust-cosmos-broadcaster/bin/client.rs @@ -70,7 +70,8 @@ async fn main() -> anyhow::Result<()> { let mut input = String::new(); let stdin = std::io::stdin(); - let _n = stdin.read_line(&mut input).unwrap(); + // let _n = stdin.read_line(&mut input).unwrap(); + stdin.read_line(&mut input)?; if input.starts_with('y') { println!("\nsending pre-signed tx through the mixnet to broadcaster service");