summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs
index cd00b7f..d577cdf 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -317,7 +317,7 @@ impl Config {
pub fn db_path(&self) -> PathBuf {
self.root.join("aur-build.db")
}
- pub fn mirrors_dir(&self) -> PathBuf {
+ fn mirrors_dir(&self) -> PathBuf {
self.root.join("mirrors")
}
pub fn mirror_path(&self, pkgbase: &str) -> PathBuf {
@@ -348,13 +348,13 @@ impl Config {
pub fn store_path(&self, digest: &str) -> PathBuf {
self.store_dir().join(&digest[..2.min(digest.len())]).join(digest)
}
- pub fn log_dir(&self) -> PathBuf {
+ fn log_dir(&self) -> PathBuf {
self.root.join("logs")
}
pub fn build_log_path(&self, build_id: &str) -> PathBuf {
self.log_dir().join(format!("{build_id}.log"))
}
- pub fn repo_dir(&self) -> PathBuf {
+ fn repo_dir(&self) -> PathBuf {
self.root.join("repo")
}
pub fn repo_arch_dir(&self) -> PathBuf {
@@ -409,7 +409,7 @@ fn absolute(p: &Path) -> crate::error::Result<PathBuf> {
Ok(std::path::absolute(p)?)
}
-pub fn slug(url: &str) -> String {
+fn slug(url: &str) -> String {
url.chars()
.map(|c| {
if c.is_ascii_alphanumeric() {