From 8659bc76532ee5d86fab828fd08e48be190384f4 Mon Sep 17 00:00:00 2001 From: ghassmo Date: Fri, 31 Dec 2021 18:53:54 +0400 Subject: [PATCH] hide warning messages --- src/darkpulse/dbsql.rs | 1 + src/tui/app.rs | 1 + src/util/loader.rs | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/darkpulse/dbsql.rs b/src/darkpulse/dbsql.rs index 5363494c6..52fda6ee4 100644 --- a/src/darkpulse/dbsql.rs +++ b/src/darkpulse/dbsql.rs @@ -5,6 +5,7 @@ use rusqlite::{params, Connection}; use super::{utility::default_config_dir, Channel, CiphertextHash, SlabMessage}; use crate::Result; +#[allow(dead_code)] #[derive(Debug)] pub struct Dbsql { connection: Connection, diff --git a/src/tui/app.rs b/src/tui/app.rs index 909ef925d..cfedb6853 100644 --- a/src/tui/app.rs +++ b/src/tui/app.rs @@ -11,6 +11,7 @@ use termion::{ use crate::Result; use super::Layout; +#[allow(dead_code)] pub struct App { layouts: Vec>, stdin: Mutex>, diff --git a/src/util/loader.rs b/src/util/loader.rs index 1493c6b9d..a8fdb4b00 100644 --- a/src/util/loader.rs +++ b/src/util/loader.rs @@ -69,8 +69,8 @@ impl ContractLoader { pub fn create_prk(name: String) -> Result<()> { // TODO: implement this - let mint_vk = ProvingKey::build(11, MintContract::default()); - let mut file = File::create(name + ".prk")?; + let _mint_vk = ProvingKey::build(11, MintContract::default()); + let _file = File::create(name + ".prk")?; // TODO: serialize and save file Ok(()) } @@ -78,7 +78,7 @@ impl ContractLoader { pub fn create_vrk(name: String) -> Result<()> { // TODO: implement this let _mint_vk = VerifyingKey::build(11, MintContract::default()); - let mut file = File::create(name + ".vrk")?; + let _file = File::create(name + ".vrk")?; // TODO: serialize and save file Ok(()) }