diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e38c2bf..df35002 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -35,7 +35,8 @@ - + + + + @@ -104,6 +118,11 @@ + + + + @@ -121,7 +140,7 @@ @@ -157,9 +183,18 @@ - + + + + + + + + @@ -168,46 +203,54 @@ - + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + diff --git a/src/storage/store.rs b/src/storage/store.rs index 60ba7a8..ec18973 100644 --- a/src/storage/store.rs +++ b/src/storage/store.rs @@ -1,9 +1,11 @@ #![allow(unused)] -use regex; + use std::fs; -use std::io::{prelude::*, Error, ErrorKind}; +use std::io::{Error, ErrorKind, prelude::*}; use std::path; +use regex; + #[derive(Debug, PartialEq)] pub struct Store { path: String, @@ -69,10 +71,12 @@ impl Store { #[cfg(test)] mod tests { - use super::Store; - use regex; use std::{fs, io, iter::FromIterator, path, path::MAIN_SEPARATOR, time::SystemTime}; + use regex; + + use super::Store; + const TMP_DIR: [&'static str; 5] = ["/tmp", "pigeon_core", "test_data", "storage", "store"]; fn format_file_name(name: &str) -> String {