Skip to content

Commit

Permalink
Apply suggestions from clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 19, 2022
1 parent 04495c9 commit c3bea6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/print-trust-anchors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Print the Subject of all extracted trust anchors.
use rustls_native_certs;

use std::error::Error;
use x509_parser::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn load_certs_from_env() -> Option<Result<Vec<Certificate>, Error>> {
}

fn load_pem_certs(path: &Path) -> Result<Vec<Certificate>, Error> {
let f = File::open(&path)?;
let f = File::open(path)?;
let mut f = BufReader::new(f);

match rustls_pemfile::certs(&mut f) {
Expand Down

0 comments on commit c3bea6d

Please sign in to comment.