Skip to content

Commit d9b89f0

Browse files
committed
Cleanup imports and mark as tests
1 parent 18928dd commit d9b89f0

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/tests/filter_tests.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,24 @@
44
extern crate pretty_env_logger;
55

66
use std::fs;
7-
use std::io::Bytes;
87
use std::ops::Deref;
98
use std::path::{Path, PathBuf};
10-
use std::process::id;
11-
use std::str::Utf8Error;
129

13-
use chrono::{DateTime, Utc};
1410
use futures::task::Spawn;
15-
use serde::{Deserialize, Serialize};
16-
use serde::de::DeserializeOwned;
11+
use serde_json;
1712
use uuid::Uuid;
18-
use warp::{cors, Filter, get};
19-
use warp::body::json;
20-
use warp::path::Exact;
2113
use warp::test;
22-
use serde_json;
23-
use serde_json::Value::String;
2414

25-
use crate::{files, routes, api, handlers};
15+
use crate::{api, handlers, routes};
2616
use crate::files::repos;
27-
use crate::handlers::{FileAndHashAndBranchName, FileIDAndGitHash, IdOnly};
17+
use crate::handlers::FileIDAndGitHash;
2818
use crate::routes::get_file;
2919

30-
20+
#[allow(non_snake_case)]
3121
fn FILES_DIR() -> PathBuf {
3222
Path::new(".").join("files")
3323
}
24+
#[allow(non_snake_case)]
3425
fn PREVIEWS_DIR() -> PathBuf {
3526
Path::new(".").join("previews")
3627
}

src/tests/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#[cfg(test)]
12
mod filter_tests;

0 commit comments

Comments
 (0)