[flake8-bandit] Add Rule for S324 (Insecure hash functions in hashlib) (#1661)

ref: https://github.com/charliermarsh/ruff/issues/1646
This commit is contained in:
Maksudul Haque 2023-01-05 22:45:47 +06:00 committed by GitHub
parent 1991d618a3
commit 9f8ef1737e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 289 additions and 7 deletions

View file

@ -582,7 +582,7 @@ pub struct SimpleCallArgs<'a> {
}
impl<'a> SimpleCallArgs<'a> {
pub fn new(args: &'a Vec<Expr>, keywords: &'a Vec<Keyword>) -> Self {
pub fn new(args: &'a [Expr], keywords: &'a [Keyword]) -> Self {
let mut result = SimpleCallArgs::default();
for arg in args {