From 2d2baeca23abe98a400bf4be03e6ab9315cf4bbe Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Sat, 19 Oct 2024 20:04:00 +0100 Subject: [PATCH] [python_ast] Make the iter_mut functions public (#13542) --- crates/ruff_python_ast/src/nodes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruff_python_ast/src/nodes.rs b/crates/ruff_python_ast/src/nodes.rs index f44052f9fc..68ca97aa0f 100644 --- a/crates/ruff_python_ast/src/nodes.rs +++ b/crates/ruff_python_ast/src/nodes.rs @@ -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 { + pub fn iter_mut(&mut self) -> IterMut { 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 { + pub fn iter_mut(&mut self) -> IterMut { 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 { + pub fn iter_mut(&mut self) -> IterMut { self.as_mut_slice().iter_mut() }