timeout: Add derive Clone for the timeout service (#169)

This commit is contained in:
Lucio Franco 2019-02-27 11:57:56 -05:00 committed by GitHub
parent 8241fe8584
commit d874c251ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ use std::time::Duration;
use std::{error, fmt};
/// Applies a timeout to requests.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Timeout<T> {
inner: T,
timeout: Duration,