summaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-10-27 17:33:30 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-10-28 01:27:13 -0400
commit6de7402a002791c6216b12a40e74af9c8ab82c02 (patch)
treeab937f60b96fc18933d43377b951755cb833c781 /src/app.rs
parent398bc79a3f1f4316e6cc33b6e6bce133c1db3e4c (diff)
Convert the `Events` app component into a freestanding struct.
This one doesn't need a FromRef impl at this time, as it's only ever used in a handler that also uses other components and so will need to continue receiving `App`. However, there's little reason not to make the implementatino of the `Events` struct consistent.
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.rs b/src/app.rs
index 3f3885a..0b560dd 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -42,8 +42,8 @@ impl App {
Conversations::new(self.db.clone(), self.events.clone())
}
- pub const fn events(&self) -> Events<'_> {
- Events::new(&self.db, &self.events)
+ pub fn events(&self) -> Events {
+ Events::new(self.db.clone(), self.events.clone())
}
pub const fn invites(&self) -> Invites<'_> {