diff options
Diffstat (limited to 'kittybox-rs/indieauth/src/scopes.rs')
-rw-r--r-- | kittybox-rs/indieauth/src/scopes.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kittybox-rs/indieauth/src/scopes.rs b/kittybox-rs/indieauth/src/scopes.rs index ae039a6..d74878e 100644 --- a/kittybox-rs/indieauth/src/scopes.rs +++ b/kittybox-rs/indieauth/src/scopes.rs @@ -83,6 +83,12 @@ impl From<&str> for Scope { } } } +impl FromStr for Scope { + type Err = std::convert::Infallible; + fn from_str(s: &str) -> Result<Self, Self::Err> { + Ok(s.into()) + } +} /// A list of scopes that serializes to a space-separated string instead of a list. /// |