From d36014200549cf73a7f22c6f94fb15bec17823e8 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 29 Jan 2024 07:08:21 +0300 Subject: lint: no extra whitespace on line endings --- src/indieauth/backend/fs.rs | 6 +++--- src/indieauth/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/indieauth') 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) diff --git a/src/indieauth/mod.rs b/src/indieauth/mod.rs index 0ad2702..def9dfc 100644 --- a/src/indieauth/mod.rs +++ b/src/indieauth/mod.rs @@ -89,7 +89,7 @@ impl axum::extract::FromRequestParts for Use let Host(host) = Host::from_request_parts(req, state) .await .map_err(|_| IndieAuthResourceError::InvalidRequest)?; - + auth.get_token( &format!("https://{host}/").parse().unwrap(), token.token() -- cgit 1.4.1