Skip to content

Return Option rather than fail on empty vectors. #11733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SimonSapin opened this issue Jan 22, 2014 · 1 comment · Fixed by #11944
Closed

Return Option rather than fail on empty vectors. #11733

SimonSapin opened this issue Jan 22, 2014 · 1 comment · Fixed by #11944

Comments

@SimonSapin
Copy link
Contributor

#11129 changed the shift, pop and last methods of vectors to return an Option instead of failing on empty vectors. These methods should probably get the same change, to be consistent

  • shift_ref
  • pop_ref
  • mut_last
  • mut_shift_ref
  • mut_pop_ref
@nathanielherman
Copy link
Contributor

I'll try to fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants