summaryrefslogtreecommitdiffstats
path: root/src/watch/digests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/digests.rs')
-rw-r--r--src/watch/digests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/digests.rs b/src/watch/digests.rs
index b95bd6c..534b5bd 100644
--- a/src/watch/digests.rs
+++ b/src/watch/digests.rs
@@ -92,7 +92,7 @@ pub fn resolve_sources(
Ok(out)
}
-pub fn download_and_cache(cfg: &Config, db: &Db, url: &str) -> Result<(String, u64)> {
+pub(crate) fn download_and_cache(cfg: &Config, db: &Db, url: &str) -> Result<(String, u64)> {
let tmp = cfg.source_cache_dir().join(format!("tmp-{}", crate::hash::short(url.as_bytes(), 16)));
let (digest, size) = crate::fetch::fetch_to(url, &tmp)?;
let dest = cfg.source_cache_path(&digest);
@@ -109,7 +109,7 @@ pub fn download_and_cache(cfg: &Config, db: &Db, url: &str) -> Result<(String, u
Ok((digest, size))
}
-pub fn cached_path(db: &Db, url: &str, digest: &str) -> Option<std::path::PathBuf> {
+pub(crate) fn cached_path(db: &Db, url: &str, digest: &str) -> Option<std::path::PathBuf> {
db::source_cache_path(db, url, digest)
.ok()
.flatten()