From 6de7402a002791c6216b12a40e74af9c8ab82c02 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 27 Oct 2025 17:33:30 -0400 Subject: 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. --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app.rs') 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<'_> { -- cgit v1.2.3