Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb committed Dec 4, 2021
1 parent 6b45551 commit e69ae3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/auth_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub(crate) fn load_certs(path: &Path) -> io::Result<Vec<Certificate>> {
path,
"-----BEGIN CERTIFICATE-----",
"-----END CERTIFICATE-----",
&|v| Certificate(v),
&Certificate,
)
}

Expand All @@ -160,7 +160,7 @@ pub(crate) fn load_key(path: &Path) -> io::Result<PrivateKey> {
path,
"-----BEGIN PRIVATE KEY-----",
"-----END PRIVATE KEY-----",
&|v| PrivateKey(v),
&PrivateKey,
)?;
if keys.is_empty() {
return Err(io::Error::new(
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@
clippy::non_ascii_literal,
clippy::path_buf_push_overwrite,
clippy::print_stdout,
clippy::shadow_reuse,
clippy::shadow_same,
clippy::shadow_unrelated,
clippy::single_match_else,
clippy::string_add,
clippy::string_add_assign,
Expand All @@ -188,6 +185,7 @@
clippy::await_holding_lock,
clippy::shadow_reuse,
clippy::shadow_same,
clippy::shadow_unrelated,
clippy::wildcard_enum_match_arm,
clippy::module_name_repetitions
)]
Expand Down

0 comments on commit e69ae3a

Please sign in to comment.