diff --git a/src/auth.rs b/src/auth.rs index 38d785d..ed628ec 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -26,7 +26,7 @@ pub fn check(host: &str, headers: &HeaderMap, token: Option) -> Result<( } #[cfg(test)] -mod test { +mod tests { use super::*; use actix_web::http::HeaderValue; diff --git a/src/config.rs b/src/config.rs index dfab964..8dbb168 100644 --- a/src/config.rs +++ b/src/config.rs @@ -51,7 +51,7 @@ impl Config { } #[cfg(test)] -mod test { +mod tests { use super::*; use std::env; diff --git a/src/header.rs b/src/header.rs index 542fa7d..d0db1e7 100644 --- a/src/header.rs +++ b/src/header.rs @@ -48,7 +48,7 @@ impl ContentDisposition { } #[cfg(test)] -mod test { +mod tests { use super::*; #[test] diff --git a/src/paste.rs b/src/paste.rs index 3ab5fce..b87fb33 100644 --- a/src/paste.rs +++ b/src/paste.rs @@ -118,7 +118,7 @@ impl Paste { } #[cfg(test)] -mod test { +mod tests { use super::*; use crate::random::{RandomURLConfig, RandomURLType}; use std::env; diff --git a/src/random.rs b/src/random.rs index d72c798..1ee5242 100644 --- a/src/random.rs +++ b/src/random.rs @@ -54,7 +54,7 @@ impl Default for RandomURLType { } #[cfg(test)] -mod test { +mod tests { use super::*; #[test]