From 9bd5ea4b4292761b0b2f823c887f114459c80d8f Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 27 Oct 2025 18:26:41 -0400 Subject: Convert the `Users` component into a freestanding struct. Because `Users` is test-only and is not used in any endpoints, it doesn't need a FromRef impl. --- 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 6f6e8ba..ad19bc0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -67,8 +67,8 @@ impl App { } #[cfg(test)] - pub const fn users(&self) -> Users<'_> { - Users::new(&self.db, &self.events) + pub fn users(&self) -> Users { + Users::new(self.db.clone(), self.events.clone()) } } -- cgit v1.2.3