diff --git a/src/rapr.rs b/src/rapr.rs index a6f4c2aa..86ee1c23 100644 --- a/src/rapr.rs +++ b/src/rapr.rs @@ -115,6 +115,11 @@ impl From<&str> for RaSub { } } } +impl From for RaSub { + fn from(name: String) -> Self { + Self::from(name.as_ref()) + } +} impl RaSub { /// Generate subreddit object pub fn new(name: &str) -> Self {