I was thinking the exact same thing.
Rust being a more memory-safe language does not mean it is a secure one. Still needs proper input validation.
EDIT: I opened the documentation and found https://api.rocket.rs/rocket/request/trait.FromSegments.html I don't fully understand if the checking they do on '..' fixes the attack vector here.