Skip to content

Commit

Permalink
πŸ“Ž
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Mar 18, 2024
1 parent e15e810 commit 6b3b4b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl RenderContext {
if e.kind() != ErrorKind::NotFound {
log::error!("Got unexpected error {e} trying to open pipeline cache at {cache_file:?}");
} else {
log::info!("Didn't get pipeline cache at {cache_file:?}")
log::info!("Didn't get pipeline cache at {cache_file:?}");
}
let cache = device.create_pipeline_cache(&wgpu::PipelineCacheDescriptor {
label: Some("Vello Pipeline cache"),
Expand Down Expand Up @@ -210,11 +210,11 @@ impl DeviceHandle {
return;
};
let temp_filename = cache_filename.with_extension("temp");
if let Err(e) = std::fs::write(&temp_filename, &data) {
if let Err(e) = std::fs::write(&temp_filename, data) {
log::error!("Got {e} whilst writing pipeline cache data to {temp_filename:?}");
return;
};
if let Err(e) = std::fs::rename(&temp_filename, &cache_filename) {
if let Err(e) = std::fs::rename(&temp_filename, cache_filename) {
log::error!("Got {e} whilst moving pipeline cache data from {temp_filename:?} to {cache_filename:?}");
return;
};
Expand Down

0 comments on commit 6b3b4b5

Please sign in to comment.