From b20fe4f970a7a7f97f8451634e44bcdc6f3b63b1 Mon Sep 17 00:00:00 2001 From: martinvuyk Date: Sat, 1 Feb 2025 12:28:03 -0300 Subject: [PATCH] remove stringslice 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 1b0fbe9a4e..cae177cd9f 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 223b4ec71e..fcaa2071a3 100644 --- a/stdlib/src/collections/string/string_slice.mojo +++ b/stdlib/src/collections/string/string_slice.mojo @@ -881,7 +881,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.