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,8 +1,3 @@
// TODO: remove on implementation
#![allow(unused_imports)]
#![allow(unused_variables)]
#![allow(dead_code)]
use crate::model::*;
use crate::persistency::*;
use crate::protocol::*;
@ -16,6 +11,7 @@ pub struct ServerState {
}
impl ServerState {
#[allow(dead_code)]
pub fn new(storage_path: &Path) -> std::io::Result<Self> {
Ok(Self {
data_store: Arc::new(RwLock::new(DataStore::new(&storage_path)?)),
@ -24,7 +20,7 @@ impl ServerState {
}
impl ProtocolHandler for ServerState {
fn query(&mut self, query: &[String]) -> ProtocolResult<Vec<Texture>> {
fn query(&mut self, _query: &[String]) -> ProtocolResult<Vec<Texture>> {
unimplemented!()
}