From 19dfd58a84b8d077e6e2bf13c8e36c0350c1b627 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Sat, 7 Oct 2017 14:40:24 +0200 Subject: Add the lifetime again --- src/voice/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { #[inline] fn has_valid_mode (modes: It) -> bool -where T: PartialEq, +where T: for<'a> PartialEq<&'a str>, It : IntoIterator { modes.into_iter().any(|s| s == CRYPTO_MODE) -- cgit v1.2.3