When I started Rust and didn't know lifetimes, I used String over &str everywhere, because it was easier to work with. This makes for very annoying API though. This PR changes String arguments in function headers to be &str, if possible. Should also make for some minor performance gains, even though this is not the goal
When I started Rust and didn't know lifetimes, I used
String
over&str
everywhere, because it was easier to work with. This makes for very annoying API though. This PR changesString
arguments in function headers to be&str
, if possible. Should also make for some minor performance gains, even though this is not the goal