The mutability keyword mut is crucial. By default, all variables in Rust are immutable. To add or remove elements from a Vec , we must explicitly declare it as mutable using mut . Without it, the vector is created as empty and can never be changed.
A highly recommended, low-cost investment for DIY mechanics to prevent scratches and broken plastic clips. ⚡ Vector (VEC) Battery Chargers & Jump Starters