mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 00:24:13 -05:00
[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:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user