Skip to content

Commit

Permalink
to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Mar 13, 2024
1 parent d4f5d54 commit 30bb08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,10 @@ impl<'a, T: ArtifactOutput> ArtifactsCacheInner<'a, T> {

/// Returns whether we are missing artifacts for the given file and version.
fn is_missing_artifacts(&self, file: &Path, version: &Version) -> bool {
println!("path {}", file.display());
println!("path {}", file.to_string_lossy());
println!("cache {:?}", self.cache);
println!("cached artifacts {:?}", self.cached_artifacts);
self.cached_artifacts.get(&format!("{}", file.display())).map_or(true, |artifacts| {
self.cached_artifacts.get(file.to_string_lossy().as_ref()).map_or(true, |artifacts| {
!artifacts.values().flatten().any(|artifact| artifact.version == *version)
})
}
Expand Down

0 comments on commit 30bb08e

Please sign in to comment.