Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Fix FileCache#99

Open
scratchyone wants to merge 1 commit intozesterer:mainfrom
scratchyone:main
Open

Fix FileCache#99
scratchyone wants to merge 1 commit intozesterer:mainfrom
scratchyone:main

Conversation

@scratchyone
Copy link
Copy Markdown

@scratchyone scratchyone commented Jan 5, 2024

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.

@nevakrien
Copy link
Copy Markdown
Contributor

How about we dont break backwards compatibility by simply adding ANOTHER implementation of Cache as opposed to changing it.

So file cache would work with both Path and &Path and we can just merge it right now

@zesterer zesterer force-pushed the main branch 2 times, most recently from 2f36bc2 to 4b3807c Compare December 13, 2025 21:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants