about summary refs log tree commit diff stats
path: root/crates/rocie-client/src/models/password_hash.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:12:31 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:12:31 +0100
commit7565c34d69ee259fef3ac9813d689d97689a6d58 (patch)
treeee4f00e3d090ec288d481cc92781e55637619824 /crates/rocie-client/src/models/password_hash.rs
parentfeat(rocie-server): Implement basic user handling and authentication (diff)
downloadserver-7565c34d69ee259fef3ac9813d689d97689a6d58.zip
style(rocie-client): Format
Diffstat (limited to 'crates/rocie-client/src/models/password_hash.rs')
-rw-r--r--crates/rocie-client/src/models/password_hash.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/rocie-client/src/models/password_hash.rs b/crates/rocie-client/src/models/password_hash.rs
index 31413bf..b73a944 100644
--- a/crates/rocie-client/src/models/password_hash.rs
+++ b/crates/rocie-client/src/models/password_hash.rs
@@ -21,9 +21,6 @@ pub struct PasswordHash {
 impl PasswordHash {
     /// This is stored as an PHC password string.  This type corresponds to the string representation of a PHC string as described in the [PHC string format specification][1].  PHC strings have the following format:  ```text $<id>[$v=<version>][$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]] ```
     pub fn new(value: String) -> PasswordHash {
-        PasswordHash {
-            value,
-        }
+        PasswordHash { value }
     }
 }
-