diff options
| author | Austin Hellyer <[email protected]> | 2016-11-21 19:28:26 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-21 19:28:26 -0800 |
| commit | 59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb (patch) | |
| tree | 9e89a122328f14e298c50681e432a3bf3d5d50e9 /src/ext | |
| parent | Re-organize the client module (diff) | |
| download | serenity-59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb.tar.xz serenity-59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb.zip | |
Don't unnecessarily borrow some if-lets
Diffstat (limited to 'src/ext')
| -rw-r--r-- | src/ext/voice/handler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/voice/handler.rs b/src/ext/voice/handler.rs index 1f2a5d2..cbdd033 100644 --- a/src/ext/voice/handler.rs +++ b/src/ext/voice/handler.rs @@ -282,7 +282,7 @@ impl Handler { /// You probably shouldn't use this if you're reading the source code. #[doc(hidden)] pub fn update_server(&mut self, endpoint: &Option<String>, token: &str) { - if let &Some(ref endpoint) = endpoint { + if let Some(ref endpoint) = *endpoint { let endpoint = endpoint.clone(); let token = token.to_owned(); let session_id = match self.session_id { |