about summary refs log tree commit diff
path: root/indieauth
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-01-29 07:08:21 +0300
committerVika <vika@fireburn.ru>2024-01-29 07:08:21 +0300
commitd36014200549cf73a7f22c6f94fb15bec17823e8 (patch)
tree6e56f912219c5d20e2768b1f016f23fff22fe83e /indieauth
parented51d48f7353a5ceefa798ded52d3af465d4d0ec (diff)
downloadkittybox-d36014200549cf73a7f22c6f94fb15bec17823e8.tar.zst
lint: no extra whitespace on line endings
Diffstat (limited to 'indieauth')
-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")]));
     }