

1·
4 months agoI mean yes, but it’s right there: “without deep forethought”. I prefer copyleft but MIT is a popular default choice


I mean yes, but it’s right there: “without deep forethought”. I prefer copyleft but MIT is a popular default choice


Always a relevant xkcd, isn’t there


As someone else said I think the shadowing works well here.
I do also wanna mention that depending on why you need this conversion, you could use impl AsRef<std::path::Path> for your function signature so it can accept or &Path. Then, just use that argument with e.g. p.as_ref() to get a &Path in the function body
Bro how many Saddam Hussein memes 😂