summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-16 11:40:11 -0600
committermo khan <mo@mokhan.ca>2025-07-16 11:40:14 -0600
commitbb7d3d3bdd2da8334d24e537dc371237a5ff3f7c (patch)
tree335046ecb336aa62da12bf63cd684554a6ff79e1
parent5415061a638431b6148eddf5693c3d3f3d3eba9a (diff)
refactor: extract ::new()
-rw-r--r--src/authorization/default.rs8
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()
}
}