From 1d42c63e53335f4f42b25c254cd9ac5cea558d45 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Apr 2024 12:18:33 +0100 Subject: [PATCH] chore(server): Rename server.rs as server/mod.rs Server will be the more complex component, so prepare to add more modules under server. --- src/{server.rs => server/mod.rs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{server.rs => server/mod.rs} (94%) diff --git a/src/server.rs b/src/server/mod.rs similarity index 94% rename from src/server.rs rename to src/server/mod.rs index c151340..ef5c2c2 100644 --- a/src/server.rs +++ b/src/server/mod.rs @@ -13,7 +13,7 @@ pub(crate) fn init(fs: FileSystem) { file_name ); } else { - match fs.write_file(file_name, include_str!("../server-default.toml")) { + match fs.write_file(file_name, include_str!("../../server-default.toml")) { Ok(_) => println!("Created a default configuration file at {}", file_name), Err(e) => { eprintln!("Failed to write to the configuration file: {}", e)