aboutsummaryrefslogtreecommitdiff
path: root/src/voice
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-05 14:12:53 +0200
committeracdenisSK <[email protected]>2017-10-05 14:12:53 +0200
commit650943f9b3ef1d22b970bccf2952c89f0585d250 (patch)
treec38cba24933123ecfd339927937ddb43db217583 /src/voice
parentReplace slice parametres by IntoIterator (#177) (diff)
downloadserenity-650943f9b3ef1d22b970bccf2952c89f0585d250.tar.xz
serenity-650943f9b3ef1d22b970bccf2952c89f0585d250.zip
Use an as_ref hack
Diffstat (limited to 'src/voice')
-rw-r--r--src/voice/connection.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voice/connection.rs b/src/voice/connection.rs
index 09393f6..2a358a5 100644
--- a/src/voice/connection.rs
+++ b/src/voice/connection.rs
@@ -409,8 +409,8 @@ fn encryption_key(client: &mut Client) -> Result<Key> {
}
#[inline]
-fn has_valid_mode<'a, T, It> (modes: It) -> bool
-where T: PartialEq<&'a str>,
+fn has_valid_mode<T, It> (modes: It) -> bool
+where T: PartialEq<str>,
It : IntoIterator<Item=T>
{
modes.into_iter().any(|s| s == CRYPTO_MODE)