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;