ソースを参照

hide warning messages

ghassmo 4 年 前
コミット
8659bc7653
3 ファイル変更5 行追加3 行削除
  1. 1 0
      src/darkpulse/dbsql.rs
  2. 1 0
      src/tui/app.rs
  3. 3 3
      src/util/loader.rs

+ 1 - 0
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,

+ 1 - 0
src/tui/app.rs

@@ -11,6 +11,7 @@ use termion::{
 use crate::Result;
 use super::Layout;
 
+#[allow(dead_code)]
 pub struct App {
     layouts: Vec<Box<dyn Layout>>,
     stdin: Mutex<Keys<Stdin>>,

+ 3 - 3
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(())
     }