From f5c67c64d7837ef815da857be05a4f7c934d3f36 Mon Sep 17 00:00:00 2001 From: minish Date: Thu, 7 Dec 2023 13:33:19 -0500 Subject: [PATCH] move default_motd func to a better place --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 8ad95b5..efb6c0a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,6 +11,10 @@ pub struct Config { pub logger: LoggerConfig, } +fn default_motd() -> String { + "breeze file server (v%version%) - currently hosting %uplcount% files".to_string() +} + #[derive(Deserialize)] pub struct EngineConfig { /// The url that the instance of breeze is meant to be accessed from. @@ -56,10 +60,6 @@ pub struct CacheConfig { pub mem_capacity: usize, } -fn default_motd() -> String { - "breeze file server (v%version%) - currently hosting %uplcount% files".to_string() -} - #[derive(Deserialize)] pub struct HttpConfig { pub listen_on: String,