Skip to content

Commit 81fa34f

Browse files
committed
Remove RelPath::download
1 parent 66d67f5 commit 81fa34f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

build_system/path.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ pub(crate) struct Dirs {
1515
#[derive(Debug, Copy, Clone)]
1616
pub(crate) enum PathBase {
1717
Source,
18-
Download,
1918
Build,
2019
}
2120

2221
impl PathBase {
2322
fn to_path(self, dirs: &Dirs) -> PathBuf {
2423
match self {
2524
PathBase::Source => dirs.source_dir.clone(),
26-
PathBase::Download => dirs.download_dir.clone(),
2725
PathBase::Build => dirs.build_dir.clone(),
2826
}
2927
}
@@ -40,10 +38,6 @@ impl RelPath {
4038
RelPath { base: PathBase::Source, suffix }
4139
}
4240

43-
pub(crate) const fn download(suffix: &'static str) -> RelPath {
44-
RelPath { base: PathBase::Download, suffix }
45-
}
46-
4741
pub(crate) const fn build(suffix: &'static str) -> RelPath {
4842
RelPath { base: PathBase::Build, suffix }
4943
}

build_system/prepare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl GitRepo {
7979

8080
fn download_dir(&self, dirs: &Dirs) -> PathBuf {
8181
match self.url {
82-
GitRepoUrl::Github { user: _, repo } => RelPath::download(repo).to_path(dirs),
82+
GitRepoUrl::Github { user: _, repo } => dirs.download_dir.join(repo),
8383
}
8484
}
8585

0 commit comments

Comments
 (0)