remove some allow annotions and fix resulting warnings

This commit is contained in:
2019-05-07 17:46:17 +02:00
parent cd5e69145f
commit 66fc54cb3e
11 changed files with 20 additions and 33 deletions

View File

@ -1,10 +1,8 @@
use crate::model::*;
use std::collections::*;
use std::fs;
use std::io;
use std::path::{Path, PathBuf};
use std::sync::Arc;
pub use self::search::Query;
mod image_convert;
@ -39,7 +37,7 @@ pub struct DataStore {
id_index: HashMap<String, Texture>,
name_index: HashMap<String, Texture>,
preview_cache: HashMap<(TextureFormat, Sha256), Vec<u8>>,
_preview_cache: HashMap<(TextureFormat, Sha256), Vec<u8>>,
}
impl DataStore {
@ -69,7 +67,7 @@ impl DataStore {
id_index: Default::default(),
name_index: Default::default(),
preview_cache: Default::default(),
_preview_cache: Default::default(),
};
let metadata_file = metadata_file::MetadataFile::load(base_dir)?;
@ -173,8 +171,8 @@ impl DataStore {
pub fn get_texture_preview(
&mut self,
hash: &Sha256,
desired_format: TextureFormat,
_hash: &Sha256,
_desired_format: TextureFormat,
) -> TextureFileResult {
unimplemented!();
}
@ -183,7 +181,7 @@ impl DataStore {
unimplemented!()
}
pub fn query(&mut self, query: &self::search::Query) -> Vec<Texture> {
pub fn query(&mut self, _query: &self::search::Query) -> Vec<Texture> {
unimplemented!();
// calls self::search::search(... )
}

View File

@ -1,3 +1,6 @@
#![allow(unused_variables)]
#![allow(dead_code)]
use crate::model::*;
pub struct Query {