Closed DrSensor closed 9 months ago
Thanks for this, this is an obvious improvement! I quickly tested compilation with downstream projects too, and doesn't seem to cause any issues.
I'll merge and release 3.0.1 right away so I don't forget about it.
Choose one: is this a 🐛 bug fix, a 🙋 feature, or a 🔦 documentation change? 🙋 feature
Checklist
Context
I'm building lsp-proxy and happen to found this crate (thankyou), and this has been bugging me
This change avoid the need for
clone()
by using&path
. It also mirror tostd::fs::File::open<P: AsRef<Path>>(path: P)
.Semver Changes
3.1.0