File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ lazy_static! {
4848
4949/// Middleware to add GitHub headers to the request. If a GitHub token is set, then it is added as a
5050/// bearer token. This is used to authenticate with the GitHub API to increase the rate limit.
51- #[ derive( Debug , Default ) ]
51+ #[ derive( Debug ) ]
5252struct GithubMiddleware ;
5353
5454impl GithubMiddleware {
@@ -92,7 +92,7 @@ fn reqwest_client() -> ClientWithMiddleware {
9292 let retry_policy = ExponentialBackoff :: builder ( ) . build_with_max_retries ( 3 ) ;
9393 ClientBuilder :: new ( reqwest:: Client :: new ( ) )
9494 . with ( TracingMiddleware :: default ( ) )
95- . with ( GithubMiddleware :: default ( ) )
95+ . with ( GithubMiddleware )
9696 . with ( RetryTransientMiddleware :: new_with_policy ( retry_policy) )
9797 . build ( )
9898}
You can’t perform that action at this time.
0 commit comments