zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.61k stars 72 forks source link

Fix FileCache #99

Open scratchyone opened 6 months ago

scratchyone commented 6 months ago

As reported in #40, FileCache isn't usable, as it only implements Cache<Path>. However, as Path is unsized, it's impossible to actually pass in a Path, making FileCache unusable. This PR just changes the implementation to use &Path instead. In my quick testing, it appears to now work without any issues.