summaryrefslogtreecommitdiff
path: root/tests/shared.rs
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-12-01 14:17:47 +0300
committerNamilskyy <alive6863@gmail.com>2025-12-01 14:17:47 +0300
commitb157e34176858766738be7e6903cc188285a5aeb (patch)
tree5a58fbb2eda53cb4c3fd131f2457fb9639285ad6 /tests/shared.rs
parent3fc368fbd6a818a8f9f210c995d82725d11e6e45 (diff)
Formatted code && fix clippy warn
Diffstat (limited to 'tests/shared.rs')
-rw-r--r--tests/shared.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/shared.rs b/tests/shared.rs
index 2ea0bf5..bdbc81a 100644
--- a/tests/shared.rs
+++ b/tests/shared.rs
@@ -1,22 +1,22 @@
-use mesk::cfg::config::{Config, Repo, Log, Loglevel, Paths};
+use mesk::cfg::config::{Config, Log, Loglevel, Paths, Repo};
pub fn create_test_config(temp_dir_path: &str) -> Config {
- let cfg: Config = Config {
- repo: Repo {
- repo_url: format!(r"http://mesk.anthrill.i2p/repo/{}", std::env::consts::ARCH),
- auto_update: true,
- destination: (String::from("mesk"), String::from("mesk")),
- repo_http_url: None,
- },
- log: Log {
- log_file: String::from("/var/log/mesk.log"),
- log_level: Loglevel::Info,
- },
- paths: Paths {
- cache_dir: String::from(temp_dir_path),
- build_dir: String::from(format!("{}/build", String::from(temp_dir_path)))
- },
- };
-
- cfg
-} \ No newline at end of file
+ let cfg: Config = Config {
+ repo: Repo {
+ repo_url: format!(r"http://mesk.anthrill.i2p/repo/{}", std::env::consts::ARCH),
+ auto_update: true,
+ destination: (String::from("mesk"), String::from("mesk")),
+ repo_http_url: None,
+ },
+ log: Log {
+ log_file: String::from("/var/log/mesk.log"),
+ log_level: Loglevel::Info,
+ },
+ paths: Paths {
+ cache_dir: String::from(temp_dir_path),
+ build_dir: String::from(format!("{}/build", String::from(temp_dir_path))),
+ },
+ };
+
+ cfg
+}