From 0fd33739c108c22f7f8a36857dd04295a713fff7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 29 Jun 2024 11:16:46 +0100 Subject: [PATCH] refactor: server: collapse tests to base of crate --- crates/server/src/config/mod.rs | 2 -- crates/server/src/lib.rs | 2 -- crates/server/src/{config => }/tests.rs | 0 3 files changed, 4 deletions(-) delete mode 100644 crates/server/src/config/mod.rs rename crates/server/src/{config => }/tests.rs (100%) diff --git a/crates/server/src/config/mod.rs b/crates/server/src/config/mod.rs deleted file mode 100644 index 87c2771..0000000 --- a/crates/server/src/config/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -#[cfg(test)] -mod tests; diff --git a/crates/server/src/lib.rs b/crates/server/src/lib.rs index 3c980e1..46c13b8 100644 --- a/crates/server/src/lib.rs +++ b/crates/server/src/lib.rs @@ -7,8 +7,6 @@ use kxio::{fs::FileSystem, network::Network}; use std::path::PathBuf; use tracing::{error, info, level_filters::LevelFilter}; -mod config; - pub fn init(fs: FileSystem) { let file_name = "git-next-server.toml"; let pathbuf = PathBuf::from(file_name); diff --git a/crates/server/src/config/tests.rs b/crates/server/src/tests.rs similarity index 100% rename from crates/server/src/config/tests.rs rename to crates/server/src/tests.rs