From 2f101c617c09682e632669331c99c798fd6e8c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 31 Aug 2024 22:20:35 +0200 Subject: [PATCH] Rename hook module to hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/bot.rs | 2 +- src/{hook.rs => hooks/mod.rs} | 0 src/main.rs | 4 ++-- src/web.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/{hook.rs => hooks/mod.rs} (100%) diff --git a/src/bot.rs b/src/bot.rs index 928da9b..a901d9d 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -13,7 +13,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -use crate::hook::{format_hook, Hook}; +use crate::hooks::{format_hook, Hook}; use log::debug; use xmpp::jid::{BareJid, Jid}; diff --git a/src/hook.rs b/src/hooks/mod.rs similarity index 100% rename from src/hook.rs rename to src/hooks/mod.rs diff --git a/src/main.rs b/src/main.rs index d6d0157..f05360f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,13 +19,13 @@ mod bot; mod config; mod error; -mod hook; +mod hooks; mod web; use crate::bot::XmppClient; use crate::config::Config; use crate::error::Error; -use crate::hook::Hook; +use crate::hooks::Hook; use crate::web::hooks; use std::sync::{Arc, Mutex}; diff --git a/src/web.rs b/src/web.rs index 5892d66..23423ae 100644 --- a/src/web.rs +++ b/src/web.rs @@ -14,7 +14,7 @@ // along with this program. If not, see . use crate::error::Error; -use crate::hook::{ForgejoHook, GitlabHook, Hook}; +use crate::hooks::{ForgejoHook, GitlabHook, Hook}; use std::convert::Infallible; use std::io::Read;