diff options
Diffstat (limited to 'src/voice/connection.rs')
| -rw-r--r-- | src/voice/connection.rs | 4 |
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) |