make Headers implement Clone

This commit is contained in:
Sean McArthur
2014-11-14 09:44:26 -08:00
parent 35336c770e
commit 14d3209a72
4 changed files with 24 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ impl<S: Scheme> HeaderFormat for Authorization<S> {
}
/// An Authorization scheme to be used in the header.
pub trait Scheme: FromStr + Send + Sync {
pub trait Scheme: FromStr + Clone + Send + Sync {
/// An optional Scheme name.
///
/// For example, `Basic asdf` has the name `Basic`. The Option<Self> is