diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-10-27 18:23:34 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-10-28 02:08:11 -0400 |
| commit | be21b088f0d1b591cbd8dcfed1e06f2742a524d0 (patch) | |
| tree | 7b4b006d485c921def8d1f4605257763d218feb6 /src/token/app.rs | |
| parent | d66728889105f6f1ef5113d9ceb223e362df0008 (diff) | |
Convert the `Tokens` component into a freestanding struct.
As with the `Setup` component, I've generalized the associated middleware across anything that can provide a `Tokens`, where possible.
Diffstat (limited to 'src/token/app.rs')
| -rw-r--r-- | src/token/app.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/token/app.rs b/src/token/app.rs index 1d68f32..332473d 100644 --- a/src/token/app.rs +++ b/src/token/app.rs @@ -12,13 +12,13 @@ use super::{ }; use crate::{clock::DateTime, db::NotFound as _, name}; -pub struct Tokens<'a> { - db: &'a SqlitePool, - token_events: &'a Broadcaster, +pub struct Tokens { + db: SqlitePool, + token_events: Broadcaster, } -impl<'a> Tokens<'a> { - pub const fn new(db: &'a SqlitePool, token_events: &'a Broadcaster) -> Self { +impl Tokens { + pub const fn new(db: SqlitePool, token_events: Broadcaster) -> Self { Self { db, token_events } } |
