diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.rs b/src/errors.rs index d935c49..51ac8fd 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -34,8 +34,8 @@ impl From<String> for Error { Error::Misc(error) } } -impl<'a> From<PoisonError<MutexGuard<'a, HashMap<String, Spotify>>>> for Error { - fn from(error: PoisonError<MutexGuard<'a, HashMap<String, Spotify>>>) -> Self { +impl<'a> From<PoisonError<MutexGuard<'a, HashMap<String, (String, Spotify)>>>> for Error { + fn from(error: PoisonError<MutexGuard<'a, HashMap<String, (String, Spotify)>>>) -> Self { Error::Misc(format!("failed to lock the client mutex: {:?}", error)) } } |