Hi, insert modifies the string in place that's why you have (), the documentation of the unit type explains it.
If your string is mutable you can simply do:
someString.insert(1, c);
and the string will be modified. If you don't want to modify someString and/or it's immutable you can do:
let mut newString = someString.clone();
newString.insert(1, c);
or more complicated but probably with better performance:
let mut newString = String::with_capacity(someString.capacity() + c.len_utf8());
newString.push_str(&someString[0..1]);
newString.push(c);
newString.push_str(&someString[1..]);
I can't think of a way to have a pretty and efficient version but I'm curious to see what other people will propose.