mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
[python_ast] Make the iter_mut functions public (#13542)
This commit is contained in:
parent
fb66f715f3
commit
2d2baeca23
1 changed files with 3 additions and 3 deletions
|
@ -1296,7 +1296,7 @@ impl FStringValue {
|
||||||
|
|
||||||
/// Returns an iterator over all the [`FStringPart`]s contained in this value
|
/// Returns an iterator over all the [`FStringPart`]s contained in this value
|
||||||
/// that allows modification.
|
/// that allows modification.
|
||||||
pub(crate) fn iter_mut(&mut self) -> IterMut<FStringPart> {
|
pub fn iter_mut(&mut self) -> IterMut<FStringPart> {
|
||||||
self.as_mut_slice().iter_mut()
|
self.as_mut_slice().iter_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1749,7 +1749,7 @@ impl StringLiteralValue {
|
||||||
|
|
||||||
/// Returns an iterator over all the [`StringLiteral`] parts contained in this value
|
/// Returns an iterator over all the [`StringLiteral`] parts contained in this value
|
||||||
/// that allows modification.
|
/// that allows modification.
|
||||||
pub(crate) fn iter_mut(&mut self) -> IterMut<StringLiteral> {
|
pub fn iter_mut(&mut self) -> IterMut<StringLiteral> {
|
||||||
self.as_mut_slice().iter_mut()
|
self.as_mut_slice().iter_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2138,7 +2138,7 @@ impl BytesLiteralValue {
|
||||||
|
|
||||||
/// Returns an iterator over all the [`BytesLiteral`] parts contained in this value
|
/// Returns an iterator over all the [`BytesLiteral`] parts contained in this value
|
||||||
/// that allows modification.
|
/// that allows modification.
|
||||||
pub(crate) fn iter_mut(&mut self) -> IterMut<BytesLiteral> {
|
pub fn iter_mut(&mut self) -> IterMut<BytesLiteral> {
|
||||||
self.as_mut_slice().iter_mut()
|
self.as_mut_slice().iter_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue