Skip to content

Commit afe2a23

Browse files
committed
chore: make clippy happy
1 parent 91a3555 commit afe2a23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/http.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub async fn create_client(options: &HttpOptions) -> anyhow::Result<reqwest::Cli
8787

8888
for cert in &options.additional_root_certificates {
8989
log::info!("Adding additional root certificate: {}", cert.display());
90-
let cert = std::fs::read(&cert)
90+
let cert = std::fs::read(cert)
9191
.with_context(|| format!("Reading certificate: {}", cert.display()))?;
9292
let certs = reqwest::tls::Certificate::from_pem_bundle(&cert)?;
9393
for cert in certs {

src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct OrNone<'a, T>(pub &'a Option<T>)
77
where
88
T: Display;
99

10-
impl<'a, T> Display for OrNone<'a, T>
10+
impl<T> Display for OrNone<'_, T>
1111
where
1212
T: Display,
1313
{

0 commit comments

Comments
 (0)