Skip to content

Commit caa768c

Browse files
committed
1 parent 5094e1d commit caa768c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • crates/vite_task/src/session

crates/vite_task/src/session/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,9 @@ impl<'a> Session<'a> {
554554
///
555555
/// Returns an error if the cache database cannot be loaded or created.
556556
pub fn cache(&self) -> anyhow::Result<&ExecutionCache> {
557-
self.cache
558-
.get_or_try_init(|| ExecutionCache::load_from_path(&self.cache_path, &self.program_name))
557+
self.cache.get_or_try_init(|| {
558+
ExecutionCache::load_from_path(&self.cache_path, &self.program_name)
559+
})
559560
}
560561

561562
pub fn workspace_path(&self) -> Arc<AbsolutePath> {

0 commit comments

Comments
 (0)