From dec35b4c8f0f79aa90f958761edcbd0d45ca5ee1 Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Thu, 8 May 2025 23:40:14 +0100 Subject: [PATCH] style: Use "FILE_NAME" instead of "FILENAME" to be consistent with Rust std::path naming convention --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index eee4b6e..b9fb4dd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,10 +5,10 @@ use mwbot::parsoid::WikiMultinode; use dirs::config_dir; const CONFIG_TEMPLATE_PATH: &'static str = "mwbot_template.toml"; -const BOT_CONFIG_FILENAME: &'static str = "mwbot.toml"; +const BOT_CONFIG_FILE_NAME: &'static str = "mwbot.toml"; fn get_bot_config_path() -> PathBuf { - config_dir().unwrap().join(BOT_CONFIG_FILENAME) + config_dir().unwrap().join(BOT_CONFIG_FILE_NAME) } #[derive(Parser)] @@ -36,7 +36,7 @@ struct SetupArgs { /// Specify the REST URL of the bot #[arg(long, env = "MW_REST_URL")] rest_url: String, - + } #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Subcommand)]