diff options
| author | acdenisSK <[email protected]> | 2017-10-07 14:40:24 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:48:18 -0700 |
| commit | 19dfd58a84b8d077e6e2bf13c8e36c0350c1b627 (patch) | |
| tree | 291c16d432089439eb5e1d9dff254d9bf4f0503a /src | |
| parent | Help-commands filtering and Member-prefix-search (#182) (diff) | |
| download | serenity-19dfd58a84b8d077e6e2bf13c8e36c0350c1b627.tar.xz serenity-19dfd58a84b8d077e6e2bf13c8e36c0350c1b627.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) |