Merge pull request #106 from ggriffiniii/master

Make RequestError Sync
This commit is contained in:
Lewin Bormann
2019-08-31 19:38:08 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ use itertools::Itertools;
/// For completeness, the underlying, sorted scopes are provided as well. They might be
/// useful for presentation to the user.
pub trait TokenStorage {
type Error: 'static + Error + Send;
type Error: 'static + Error + Send + Sync;
/// If `token` is None, it is invalid or revoked and should be removed from storage.
/// Otherwise, it should be saved.

View File

@@ -71,7 +71,7 @@ pub enum RequestError {
/// An error occurred while refreshing tokens.
Refresh(RefreshResult),
/// Error in token cache layer
Cache(Box<dyn Error + Send>),
Cache(Box<dyn Error + Send + Sync>),
}
impl From<hyper::Error> for RequestError {