about summary refs log tree commit diff
path: root/indieauth/src
diff options
context:
space:
mode:
Diffstat (limited to 'indieauth/src')
-rw-r--r--indieauth/src/lib.rs2
-rw-r--r--indieauth/src/scopes.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/indieauth/src/lib.rs b/indieauth/src/lib.rs
index a60cc42..9841b53 100644
--- a/indieauth/src/lib.rs
+++ b/indieauth/src/lib.rs
@@ -517,7 +517,7 @@ impl TokenData {
     /// Check if the token in question expired.
     pub fn expired(&self) -> bool {
         use std::time::{Duration, SystemTime, UNIX_EPOCH};
-        
+
         self.exp
             .map(|exp| SystemTime::now()
                  .duration_since(UNIX_EPOCH)
diff --git a/indieauth/src/scopes.rs b/indieauth/src/scopes.rs
index d74878e..c664c55 100644
--- a/indieauth/src/scopes.rs
+++ b/indieauth/src/scopes.rs
@@ -164,7 +164,7 @@ impl<'de> Visitor<'de> for ScopeVisitor {
     }
 }
 impl<'de> Deserialize<'de> for Scopes {
-    
+
     fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
     where
         D: Deserializer<'de>
@@ -191,7 +191,7 @@ mod tests {
         let scope_str = scope_serialized.as_str().unwrap();
         assert_eq!(scope_str, "create update delete media kittybox_internal_access");
 
-        assert!(serde_json::from_value::<Scopes>(scope_serialized).unwrap().has_all(&scopes))        
+        assert!(serde_json::from_value::<Scopes>(scope_serialized).unwrap().has_all(&scopes))
     }
 
     #[test]
@@ -201,7 +201,7 @@ mod tests {
         ]);
 
         assert!(scopes.has_all(&[Scope::Create, Scope::custom("draft")]));
-        
+
         assert!(!scopes.has_all(&[Scope::Read, Scope::custom("kittybox_internal_access")]));
     }