diff options
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")])); } |