diff options
| author | acdenisSK <[email protected]> | 2017-10-07 14:40:24 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-07 14:40:24 +0200 |
| commit | 1df7ea456b5667ecaf0d5d4191beeed9b366c3b3 (patch) | |
| tree | 709823644d25582b2ef3ba5030fbf85c075785d3 /src | |
| parent | Help-commands filtering and Member-prefix-search (#182) (diff) | |
| download | serenity-1df7ea456b5667ecaf0d5d4191beeed9b366c3b3.tar.xz serenity-1df7ea456b5667ecaf0d5d4191beeed9b366c3b3.zip | |
Add the lifetime again
Diffstat (limited to 'src')
| -rw-r--r-- | src/voice/connection.rs | 2 |
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) |