File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,13 @@ mod tests {
186186 }
187187}
188188
189- bench_header ! ( raw, ProxyAuthorization <String >, { vec![ b"foo bar baz" . to_vec( ) ] } ) ;
190- bench_header ! ( basic, ProxyAuthorization <Basic >, { vec![ b"Basic QWxhZGRpbjpuIHNlc2FtZQ==" . to_vec( ) ] } ) ;
191- bench_header ! ( bearer, ProxyAuthorization <Bearer >, { vec![ b"Bearer fpKL54jvWmEGVoRdCNjG" . to_vec( ) ] } ) ;
189+ #[ cfg( test) ]
190+ #[ cfg( feature = "nightly" ) ]
191+ mod benches {
192+ use super :: ProxyAuthorization ;
193+ use :: header:: { Basic , Bearer } ;
194+
195+ bench_header ! ( raw, ProxyAuthorization <String >, { vec![ b"foo bar baz" . to_vec( ) ] } ) ;
196+ bench_header ! ( basic, ProxyAuthorization <Basic >, { vec![ b"Basic QWxhZGRpbjpuIHNlc2FtZQ==" . to_vec( ) ] } ) ;
197+ bench_header ! ( bearer, ProxyAuthorization <Bearer >, { vec![ b"Bearer fpKL54jvWmEGVoRdCNjG" . to_vec( ) ] } ) ;
198+ }
You can’t perform that action at this time.
0 commit comments