diff --git a/src/handlers.rs b/src/handlers.rs index 1e47edc..3deff3c 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -15,7 +15,7 @@ use crate::component::ComponentTrait; use crate::error::Error; -use crate::types::{Nick, Room}; +use crate::room::{Nick, Room}; use std::collections::HashMap; use std::ops::ControlFlow; diff --git a/src/main.rs b/src/main.rs index 75ee9f1..9787675 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ mod component; mod error; mod handlers; -mod types; +mod room; #[cfg(test)] mod tests; @@ -26,7 +26,7 @@ mod tests; use crate::component::Component; use crate::error::Error; use crate::handlers::handle_stanza; -use crate::types::Room; +use crate::room::Room; use std::collections::HashMap; use std::env::args; diff --git a/src/types.rs b/src/room.rs similarity index 100% rename from src/types.rs rename to src/room.rs diff --git a/src/tests.rs b/src/tests.rs index b9e5e6e..e558afd 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -15,7 +15,7 @@ use crate::component::TestComponent; use crate::handlers::handle_stanza; -use crate::types::Room; +use crate::room::Room; use std::collections::{BTreeMap, HashMap}; use std::str::FromStr;