diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-10-27 18:26:41 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-10-28 02:08:28 -0400 |
| commit | 9bd5ea4b4292761b0b2f823c887f114459c80d8f (patch) | |
| tree | b90cf7315b9637cb4f0a6620ddc2c2d780f9f016 /src/app.rs | |
| parent | be21b088f0d1b591cbd8dcfed1e06f2742a524d0 (diff) | |
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.
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) } } |
