Closed cbreeden closed 3 years ago
Same is true for Path and PathBuf I believe, and also for Vec and slices. There is also a clippy lint about this (works only with nightly): https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg We should express this concept in a general way and add it to idioms.
This issue should be fixed with #29 I believe, if not feel free to reopen.
This is a common idiom, where using an
&str
is often more flexible than using a&String
.