diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 11:40:11 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 11:40:14 -0600 |
| commit | bb7d3d3bdd2da8334d24e537dc371237a5ff3f7c (patch) | |
| tree | 335046ecb336aa62da12bf63cd684554a6ff79e1 | |
| parent | 5415061a638431b6148eddf5693c3d3f3d3eba9a (diff) | |
refactor: extract ::new()
| -rw-r--r-- | src/authorization/default.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/authorization/default.rs b/src/authorization/default.rs index dcec8e2a..8252618d 100644 --- a/src/authorization/default.rs +++ b/src/authorization/default.rs @@ -1,9 +1,15 @@ #[derive(Debug)] pub struct Authorizer {} +impl Authorizer { + pub fn new() -> Self { + Self {} + } +} + impl Default for Authorizer { fn default() -> Self { - Self {} + Self::new() } } |
