From db6f3060e1fcd348a68856788229cee7508fffeb Mon Sep 17 00:00:00 2001 From: martinvuyk Date: Sat, 1 Feb 2025 12:14:34 -0300 Subject: [PATCH] remove string iter deprecation Signed-off-by: martinvuyk --- stdlib/src/collections/string/string.mojo | 1 - stdlib/src/collections/string/string_slice.mojo | 1 - 2 files changed, 2 deletions(-) diff --git a/stdlib/src/collections/string/string.mojo b/stdlib/src/collections/string/string.mojo index b28396b321..e96aab6f2f 100644 --- a/stdlib/src/collections/string/string.mojo +++ b/stdlib/src/collections/string/string.mojo @@ -1063,7 +1063,6 @@ struct String( """ self._iadd[False](other.as_bytes()) - @deprecated("Use `str.chars()` or `str.char_slices()` instead.") fn __iter__(self) -> _StringSliceIter[__origin_of(self)]: """Iterate over the string, returning immutable references. diff --git a/stdlib/src/collections/string/string_slice.mojo b/stdlib/src/collections/string/string_slice.mojo index f2ae7cd174..babdffc825 100644 --- a/stdlib/src/collections/string/string_slice.mojo +++ b/stdlib/src/collections/string/string_slice.mojo @@ -790,7 +790,6 @@ struct StringSlice[mut: Bool, //, origin: Origin[mut]]( self.unsafe_ptr(), rhs.unsafe_ptr(), min(len1, len2) ) - @deprecated("Use `str.chars()` or `str.char_slices()` instead.") fn __iter__(self) -> _StringSliceIter[origin]: """Iterate over the string, returning immutable references.