Something tells me my Pig Latin implementation from the exercise in Chapter 8 of the Rust Book (https://doc.rust-lang.org/stable/book/2018-edition/ch08-03-hash-maps.html) can be simplified. Had a nightmare with ownership while initially trying to use slices in the pig_latin function so ended up using Strings instead but it feels heavy.
Thoughts?
https://source.ind.ie/rust-book-exercises/chapter-8/pig-latin/blob/master/src/main.rs