summaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-30 01:25:04 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-30 01:25:04 -0400
commit70591c5ac10069a4ae649bd6f79d769da9e32a98 (patch)
treef9a4d155275975e4f37e063f331b7697f5c3cb07 /src/app.rs
parentffba911ba5240f67cc616b2cc2eaf7c730ebbde8 (diff)
Remove `hi-recanonicalize`.
This utility was needed to support a database migration with existing data. I have it on good authority that no further databases exist that are in the state that made this tool necessary.
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/app.rs b/src/app.rs
index bc1daa5..0dbf017 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -5,12 +5,14 @@ use crate::{
channel::app::Channels,
event::{self, app::Events},
invite::app::Invites,
- login::app::Logins,
message::app::Messages,
setup::app::Setup,
token::{self, app::Tokens},
};
+#[cfg(test)]
+use crate::login::app::Logins;
+
#[derive(Clone)]
pub struct App {
db: SqlitePool,
@@ -47,11 +49,6 @@ impl App {
Invites::new(&self.db, &self.events)
}
- #[cfg(not(test))]
- pub const fn logins(&self) -> Logins {
- Logins::new(&self.db)
- }
-
#[cfg(test)]
pub const fn logins(&self) -> Logins {
Logins::new(&self.db, &self.events)