diff options
| author | acdenisSK <[email protected]> | 2017-10-05 14:12:53 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:48:18 -0700 |
| commit | e0e76173f63b6071b9df3ff8f53371b4b6c4ee1e (patch) | |
| tree | 26e8e3518471a96e6b8f82cf167ffe758b07300a /src/voice | |
| parent | Replace slice parametres by IntoIterator (#177) (diff) | |
| download | serenity-e0e76173f63b6071b9df3ff8f53371b4b6c4ee1e.tar.xz serenity-e0e76173f63b6071b9df3ff8f53371b4b6c4ee1e.zip | |
Use an as_ref hack
Diffstat (limited to 'src/voice')
| -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) |