Skip to content

Commit 1d5bc23

Browse files
wan9chiclaude
andcommitted
refactor(cache): make CACHE_SCHEMA_VERSION private
It is only referenced within the module (by cache_schema_dir_name), so the `pub` was unnecessary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5a0583b commit 1d5bc23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/vite_task/src/session/cache

crates/vite_task/src/session/cache/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub fn split_path(path: &str) -> (Option<&str>, &str) {
200200
/// its own cache warm across branch switches, and a cache from a different
201201
/// version is simply ignored (it lives in a directory this build never looks
202202
/// at) rather than aborting the run. Bumping the version starts a fresh cache.
203-
pub const CACHE_SCHEMA_VERSION: u32 = 13;
203+
const CACHE_SCHEMA_VERSION: u32 = 13;
204204

205205
/// Name of the per-version subdirectory (e.g. `v13`) under the task-cache
206206
/// directory that holds the database and output archives for the current

0 commit comments

Comments
 (0)