aboutsummaryrefslogtreecommitdiff
path: root/src/voice
diff options
context:
space:
mode:
Diffstat (limited to 'src/voice')
-rw-r--r--src/voice/handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs
index 24b3cd9..e09c292 100644
--- a/src/voice/handler.rs
+++ b/src/voice/handler.rs
@@ -306,7 +306,7 @@ impl Handler {
/// [`connect`]: #method.connect
/// [`standalone`]: #method.standalone
pub fn update_server(&mut self, endpoint: &Option<String>, token: &str) {
- self.token = Some(token.to_owned());
+ self.token = Some(token.to_string());
if let Some(endpoint) = endpoint.clone() {
self.endpoint = Some(endpoint);