Skip to content

Commit a585f7d

Browse files
committed
chore: correct lint error
1 parent c43b796 commit a585f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql_archive/src/archive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)]
5252
struct GithubMiddleware;
5353

5454
impl 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
}

0 commit comments

Comments
 (0)