Skip to content

Commit

Permalink
Collapse match
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Dec 28, 2023
1 parent a45c331 commit 85ac5e3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ pub(crate) fn unsafe_yaml_load(checker: &mut Checker, call: &ast::ExprCall) {
.semantic()
.resolve_call_path(loader_arg)
.is_some_and(|call_path| {
matches!(call_path.as_slice(), ["yaml", "SafeLoader" | "CSafeLoader"])
|| matches!(
call_path.as_slice(),
["yaml", "loader", "SafeLoader" | "CSafeLoader"]
)
matches!(
call_path.as_slice(),
["yaml", "SafeLoader" | "CSafeLoader"]
| ["yaml", "loader", "SafeLoader" | "CSafeLoader"]
)
})
{
let loader = match loader_arg {
Expand Down

0 comments on commit 85ac5e3

Please sign in to comment.