about summary refs log tree commit diff
path: root/src/indieauth
diff options
context:
space:
mode:
Diffstat (limited to 'src/indieauth')
-rw-r--r--src/indieauth/backend/fs.rs6
-rw-r--r--src/indieauth/mod.rs2
2 files changed, 4 insertions, 4 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)
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 <S: Send + Sync, A: AuthBackend> axum::extract::FromRequestParts<S> 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()