[python_ast] Make the iter_mut functions public (#13542)

This commit is contained in:
Neil Mitchell 2024-10-19 20:04:00 +01:00 committed by GitHub
parent fb66f715f3
commit 2d2baeca23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1296,7 +1296,7 @@ impl FStringValue {
/// Returns an iterator over all the [`FStringPart`]s contained in this value
/// 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()
}
@ -1749,7 +1749,7 @@ impl StringLiteralValue {
/// Returns an iterator over all the [`StringLiteral`] parts contained in this value
/// 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()
}
@ -2138,7 +2138,7 @@ impl BytesLiteralValue {
/// Returns an iterator over all the [`BytesLiteral`] parts contained in this value
/// 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()
}