diff --git a/src/presence.rs b/src/presence.rs index 2bf09d0..fba1773 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -245,8 +245,11 @@ impl Presence { } /// Set the availability information of this presence. - pub fn set_status(&mut self, lang: Lang, status: Status) { - self.statuses.insert(lang, status); + pub fn set_status(&mut self, lang: L, status: S) + where L: Into, + S: Into, + { + self.statuses.insert(lang.into(), status.into()); } /// Add a payload to this presence.