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 /indieauth/src/scopes.rs | |
parent | ed51d48f7353a5ceefa798ded52d3af465d4d0ec (diff) | |
download | kittybox-d36014200549cf73a7f22c6f94fb15bec17823e8.tar.zst |
lint: no extra whitespace on line endings
Diffstat (limited to 'indieauth/src/scopes.rs')
-rw-r--r-- | indieauth/src/scopes.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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")])); } |