remove some compiler warnings
This commit is contained in:
parent
567713b4c3
commit
461e62fcdf
@ -1,9 +1,9 @@
|
||||
use failure::*;
|
||||
use std::collections::HashMap;
|
||||
//use failure::*;
|
||||
//use std::collections::HashMap;
|
||||
|
||||
use crate::api::schema::*;
|
||||
use crate::api::router::*;
|
||||
use serde_json::{json, Value};
|
||||
use serde_json::{json};
|
||||
|
||||
mod datastore;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
use failure::*;
|
||||
use std::collections::HashMap;
|
||||
//use std::collections::HashMap;
|
||||
|
||||
use crate::api::schema::*;
|
||||
use crate::api::router::*;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
std::thread::sleep_ms(100);
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
}
|
||||
Ok(lockfile)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user