remove some allow annotions and fix resulting warnings
This commit is contained in:
@ -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!()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user