aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-07 14:40:24 +0200
committeracdenisSK <[email protected]>2017-10-07 14:40:24 +0200
commit1df7ea456b5667ecaf0d5d4191beeed9b366c3b3 (patch)
tree709823644d25582b2ef3ba5030fbf85c075785d3 /src
parentHelp-commands filtering and Member-prefix-search (#182) (diff)
downloadserenity-1df7ea456b5667ecaf0d5d4191beeed9b366c3b3.tar.xz
serenity-1df7ea456b5667ecaf0d5d4191beeed9b366c3b3.zip
Add the lifetime again
Diffstat (limited to 'src')
-rw-r--r--src/voice/connection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/connection.rs b/src/voice/connection.rs
index 2a358a5..3b31488 100644
--- a/src/voice/connection.rs
+++ b/src/voice/connection.rs
@@ -410,7 +410,7 @@ fn encryption_key(client: &mut Client) -> Result<Key> {
#[inline]
fn has_valid_mode<T, It> (modes: It) -> bool
-where T: PartialEq<str>,
+where T: for<'a> PartialEq<&'a str>,
It : IntoIterator<Item=T>
{
modes.into_iter().any(|s| s == CRYPTO_MODE)