Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 14, 2023
1 parent 770ba81 commit 57ff929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where
match resp.await {
Ok(o) => {
inflight.remove(&body.url);
let res = check_f(&o.to_vec(), &body)?;
let res = check_f(&o, &body)?;

if !body.skip_redis.unwrap_or(false) {
redis_storage
Expand Down
2 changes: 1 addition & 1 deletion src/mini_pki.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl CAStorage {
let ca_store = self.store.read().unwrap();
let mut verify_error = String::new();
let verify_result = nstore_ctx
.init(&*ca_store.as_ref(), cert.as_ref(), chain.as_ref(), |ctx| {
.init(ca_store.as_ref(), cert.as_ref(), chain.as_ref(), |ctx| {
let res = X509StoreContextRef::verify_cert(ctx)?;
if !res {
verify_error.push_str(ctx.error().error_string());
Expand Down

0 comments on commit 57ff929

Please sign in to comment.