remove some compiler warnings

This commit is contained in:
Dietmar Maurer 2018-12-08 14:55:54 +01:00
parent 567713b4c3
commit 461e62fcdf
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
use failure::*; //use failure::*;
use std::collections::HashMap; //use std::collections::HashMap;
use crate::api::schema::*; use crate::api::schema::*;
use crate::api::router::*; use crate::api::router::*;
use serde_json::{json, Value}; use serde_json::{json};
mod datastore; mod datastore;

View File

@ -1,5 +1,5 @@
use failure::*; use failure::*;
use std::collections::HashMap; //use std::collections::HashMap;
use crate::api::schema::*; use crate::api::schema::*;
use crate::api::router::*; use crate::api::router::*;

View File

@ -87,7 +87,7 @@ fn lock_file<P: AsRef<Path>>(filename: P, timeout: usize) -> Result<File, Error>
bail!("unable to aquire lock {:?} - clock problems - {}", path, err); bail!("unable to aquire lock {:?} - clock problems - {}", path, err);
} }
} }
std::thread::sleep_ms(100); std::thread::sleep(std::time::Duration::from_millis(100));
} }
Ok(lockfile) Ok(lockfile)
} }