Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Dec 5, 2024
1 parent 91a3555 commit afe2a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn create_client(options: &HttpOptions) -> anyhow::Result<reqwest::Cli

for cert in &options.additional_root_certificates {
log::info!("Adding additional root certificate: {}", cert.display());
let cert = std::fs::read(&cert)
let cert = std::fs::read(cert)
.with_context(|| format!("Reading certificate: {}", cert.display()))?;
let certs = reqwest::tls::Certificate::from_pem_bundle(&cert)?;
for cert in certs {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct OrNone<'a, T>(pub &'a Option<T>)
where
T: Display;

impl<'a, T> Display for OrNone<'a, T>
impl<T> Display for OrNone<'_, T>
where
T: Display,
{
Expand Down

0 comments on commit afe2a23

Please sign in to comment.