Skip to content

[Result migration] Don't return options for StringArray iterators#1266

Open
DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:string-array-iter
Open

[Result migration] Don't return options for StringArray iterators#1266
DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:string-array-iter

Conversation

@DanielEScherzer
Copy link
Copy Markdown
Contributor

Instead, treat a None as indicative of a bug in the code, and panic with a clear message that something went wrong.

Also update the documentation of StringArray::iter() to reflect the correct iterated type.

Fixes #1263

Instead, treat a `None` as indicative of a bug in the code, and panic with a
clear message that something went wrong.

Also update the documentation of `StringArray::iter()` to reflect the correct
iterated type.

Fixes rust-lang#1263
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Waiting on review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New StringArray Iterator API should not include Option

2 participants