Hacker News new | ask | show | jobs
by vsgherzi 93 days ago
you could always do a .get into the vector and handle the error, it doesn't necessarily need to panic.

Thank being said in this case it should be impossible to index out of bounds so maybe a panic is warented.