fix(rustup): update lifetime bounds
Send no longer implies 'static; update needed lifetime bounds.
This commit is contained in:
committed by
Sean McArthur
parent
e8833c0c89
commit
f4a66b38cb
@@ -22,7 +22,7 @@ impl<S: Scheme> DerefMut for Authorization<S> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: Scheme> Header for Authorization<S> {
|
||||
impl<S: Scheme + 'static> Header for Authorization<S> {
|
||||
fn header_name() -> &'static str {
|
||||
"Authorization"
|
||||
}
|
||||
@@ -43,7 +43,7 @@ impl<S: Scheme> Header for Authorization<S> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: Scheme> HeaderFormat for Authorization<S> {
|
||||
impl<S: Scheme + 'static> HeaderFormat for Authorization<S> {
|
||||
fn fmt_header(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
match Scheme::scheme(None::<S>) {
|
||||
Some(scheme) => try!(write!(fmt, "{} ", scheme)),
|
||||
|
||||
Reference in New Issue
Block a user