Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qdegraaf committed Jan 4, 2024
1 parent b920af2 commit 06f2b88
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ const INSECURE_SSL_PROTOCOLS: &[&str] = &[
/// S502
pub(crate) fn ssl_insecure_version(checker: &mut Checker, call: &ExprCall) {
let keywords = match checker.semantic().resolve_call_path(call.func.as_ref()) {
Some(call_path) => {
match *call_path.as_slice() {
["ssl", "wrap_socket"] => vec!["ssl_version"],
["OpenSSL", "SSL", "Context"] => vec!["method"],
_ => vec!["ssl_version", "method"],
}
Some(call_path) => match *call_path.as_slice() {
["ssl", "wrap_socket"] => vec!["ssl_version"],
["OpenSSL", "SSL", "Context"] => vec!["method"],
_ => vec!["ssl_version", "method"],
},
None => vec!["ssl_version", "method"]
None => vec!["ssl_version", "method"],
};

for arg in keywords {
Expand Down

0 comments on commit 06f2b88

Please sign in to comment.