aboutsummaryrefslogtreecommitdiff
path: root/src/voice
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-05 14:12:53 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:48:18 -0700
commite0e76173f63b6071b9df3ff8f53371b4b6c4ee1e (patch)
tree26e8e3518471a96e6b8f82cf167ffe758b07300a /src/voice
parentReplace slice parametres by IntoIterator (#177) (diff)
downloadserenity-e0e76173f63b6071b9df3ff8f53371b4b6c4ee1e.tar.xz
serenity-e0e76173f63b6071b9df3ff8f53371b4b6c4ee1e.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)