[flake8-bandit] Support explicit string concatenations in S310 HTTP detection (#12315)

Closes https://github.com/astral-sh/ruff/issues/12314.
This commit is contained in:
Charlie Marsh 2024-07-14 10:44:08 -04:00 committed by GitHub
parent 7a7c601d5e
commit 18c364d5df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 225 additions and 200 deletions

View file

@ -1720,7 +1720,7 @@ impl StringLiteralValue {
}
/// Returns an iterator over the [`char`]s of each string literal part.
pub fn chars(&self) -> impl Iterator<Item = char> + '_ {
pub fn chars(&self) -> impl Iterator<Item = char> + Clone + '_ {
self.iter().flat_map(|part| part.value.chars())
}