mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00: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:
parent
7a7c601d5e
commit
18c364d5df
4 changed files with 225 additions and 200 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue