diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:31:34 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:31:34 +0100 |
commit | d1badf8f02908478f50558e68f2a08b0e577979e (patch) | |
tree | c7a468c530a0cb471b9d0833b96d7b37dc940d59 /src/filestore/staging.rs | |
parent | 17e907e1863d8fecf25edac01d81d595b45a9b69 (diff) |
Remove AsRef<Path> for FullArtifactPath impl
This patch removes the AsRef<Path> implementation for FullArtifactPath,
to make everything more explicit.
It also alters the FileStoreImpl implementation to contain a map of
ArtifactPath -> Artifact, rather than PathBuf -> Artifact, which is also
more type-safe than before this way.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r-- | src/filestore/staging.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs index 86e22ae..0aca6da 100644 --- a/src/filestore/staging.rs +++ b/src/filestore/staging.rs @@ -72,7 +72,7 @@ impl StagingStore { None } else { Some({ - self.0.load_from_path(fullpath.as_ref()) + self.0.load_from_path(&fullpath) .inspect(|r| trace!("Loaded from path {} = {:?}", fullpath.display(), r)) .with_context(|| anyhow!("Loading from path: {}", fullpath.display())) .map_err(Error::from) |