test(headers): fix ProxyAuthorization bench_headers error
This commit is contained in:
		| @@ -186,6 +186,13 @@ mod tests { | |||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #[cfg(test)] | ||||||
|  | #[cfg(feature = "nightly")] | ||||||
|  | mod benches { | ||||||
|  |     use super::ProxyAuthorization; | ||||||
|  |     use ::header::{Basic, Bearer}; | ||||||
|  |  | ||||||
|     bench_header!(raw, ProxyAuthorization<String>, { vec![b"foo bar baz".to_vec()] }); |     bench_header!(raw, ProxyAuthorization<String>, { vec![b"foo bar baz".to_vec()] }); | ||||||
|     bench_header!(basic, ProxyAuthorization<Basic>, { vec![b"Basic QWxhZGRpbjpuIHNlc2FtZQ==".to_vec()] }); |     bench_header!(basic, ProxyAuthorization<Basic>, { vec![b"Basic QWxhZGRpbjpuIHNlc2FtZQ==".to_vec()] }); | ||||||
|     bench_header!(bearer, ProxyAuthorization<Bearer>, { vec![b"Bearer fpKL54jvWmEGVoRdCNjG".to_vec()] }); |     bench_header!(bearer, ProxyAuthorization<Bearer>, { vec![b"Bearer fpKL54jvWmEGVoRdCNjG".to_vec()] }); | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user