diff options
author | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
commit | d36014200549cf73a7f22c6f94fb15bec17823e8 (patch) | |
tree | 6e56f912219c5d20e2768b1f016f23fff22fe83e /src/indieauth/backend | |
parent | ed51d48f7353a5ceefa798ded52d3af465d4d0ec (diff) | |
download | kittybox-d36014200549cf73a7f22c6f94fb15bec17823e8.tar.zst |
lint: no extra whitespace on line endings
Diffstat (limited to 'src/indieauth/backend')
-rw-r--r-- | src/indieauth/backend/fs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indieauth/backend/fs.rs b/src/indieauth/backend/fs.rs index 600e901..80c3703 100644 --- a/src/indieauth/backend/fs.rs +++ b/src/indieauth/backend/fs.rs @@ -25,7 +25,7 @@ impl FileBackend { path: path.into() } } - + /// Sanitize a filename, leaving only alphanumeric characters. /// /// Doesn't allocate a new string unless non-alphanumeric @@ -71,7 +71,7 @@ impl FileBackend { (if has_ext { filename .extension() - + } else { filename .file_name() @@ -337,7 +337,7 @@ impl AuthBackend for FileBackend { let password_filename = self.path .join(FileBackend::url_to_dir(website)) .join("password"); - + let salt = SaltString::generate(&mut OsRng); let argon2 = Argon2::default(); let password_hash = argon2.hash_password(password.as_bytes(), &salt) |