From a6ec78c8cf7a06e8c431e51f2dd799021f42cd57 Mon Sep 17 00:00:00 2001 From: miirc Date: Fri, 13 Nov 2020 22:02:02 -0500 Subject: [PATCH] More Linting and workspace cleanup --- .idea/workspace.xml | 93 ++++++++++++++++++++++++++++++++------------ src/storage/store.rs | 12 ++++-- 2 files changed, 76 insertions(+), 29 deletions(-) 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 {