Skip to content

Commit

Permalink
[python_ast] Make the iter_mut functions public (#13542)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell authored Oct 19, 2024
1 parent fb66f71 commit 2d2baec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff_python_ast/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -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()
}

Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit 2d2baec

Please sign in to comment.