From 461e62fcdfc02536656b8b8c211eb76f0ec03dd0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 8 Dec 2018 14:55:54 +0100 Subject: [PATCH] remove some compiler warnings --- src/api3/config.rs | 6 +++--- src/api3/config/datastore.rs | 2 +- src/backup/chunk_store.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api3/config.rs b/src/api3/config.rs index df476581..6d51f05f 100644 --- a/src/api3/config.rs +++ b/src/api3/config.rs @@ -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; diff --git a/src/api3/config/datastore.rs b/src/api3/config/datastore.rs index 2e755512..cbb7910a 100644 --- a/src/api3/config/datastore.rs +++ b/src/api3/config/datastore.rs @@ -1,5 +1,5 @@ use failure::*; -use std::collections::HashMap; +//use std::collections::HashMap; use crate::api::schema::*; use crate::api::router::*; diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index b88370fa..04155542 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -87,7 +87,7 @@ fn lock_file>(filename: P, timeout: usize) -> Result 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) }