summaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/app.rs b/src/app.rs
index 0b560dd..2d6d62b 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -46,8 +46,8 @@ impl App {
Events::new(self.db.clone(), self.events.clone())
}
- pub const fn invites(&self) -> Invites<'_> {
- Invites::new(&self.db, &self.events)
+ pub fn invites(&self) -> Invites {
+ Invites::new(self.db.clone(), self.events.clone())
}
pub const fn logins(&self) -> Logins<'_> {
@@ -83,3 +83,9 @@ impl FromRef<App> for Conversations {
app.conversations()
}
}
+
+impl FromRef<App> for Invites {
+ fn from_ref(app: &App) -> Self {
+ app.invites()
+ }
+}