Delegates no longer need to implement Clone.

This commit is contained in:
Glenn Griffin
2019-11-11 08:43:40 -08:00
parent 7446200421
commit fa121d41b2
3 changed files with 6 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ impl Error for PollError {
///
/// The only method that needs to be implemented manually is `present_user_code(...)`,
/// as no assumptions are made on how this presentation should happen.
pub trait AuthenticatorDelegate: Clone + Send + Sync {
pub trait AuthenticatorDelegate: Send + Sync {
/// Called whenever there is an client, usually if there are network problems.
///
/// Return retry information.
@@ -107,7 +107,7 @@ pub trait AuthenticatorDelegate: Clone + Send + Sync {
/// FlowDelegate methods are called when an OAuth flow needs to ask the application what to do in
/// certain cases.
pub trait FlowDelegate: Clone + Send + Sync {
pub trait FlowDelegate: Send + Sync {
/// Called if the request code is expired. You will have to start over in this case.
/// This will be the last call the delegate receives.
/// Given `DateTime` is the expiration date