File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,13 @@ pub(crate) struct Dirs {
16
16
#[ derive( Debug , Copy , Clone ) ]
17
17
pub ( crate ) enum PathBase {
18
18
Source ,
19
- Download ,
20
19
Build ,
21
20
}
22
21
23
22
impl PathBase {
24
23
fn to_path ( self , dirs : & Dirs ) -> PathBuf {
25
24
match self {
26
25
PathBase :: Source => dirs. source_dir . clone ( ) ,
27
- PathBase :: Download => dirs. download_dir . clone ( ) ,
28
26
PathBase :: Build => dirs. build_dir . clone ( ) ,
29
27
}
30
28
}
@@ -41,10 +39,6 @@ impl RelPath {
41
39
RelPath { base : PathBase :: Source , suffix }
42
40
}
43
41
44
- pub ( crate ) const fn download ( suffix : & ' static str ) -> RelPath {
45
- RelPath { base : PathBase :: Download , suffix }
46
- }
47
-
48
42
pub ( crate ) const fn build ( suffix : & ' static str ) -> RelPath {
49
43
RelPath { base : PathBase :: Build , suffix }
50
44
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ impl GitRepo {
81
81
82
82
fn download_dir ( & self , dirs : & Dirs ) -> PathBuf {
83
83
match self . url {
84
- GitRepoUrl :: Github { user : _, repo } => RelPath :: download ( repo ) . to_path ( dirs ) ,
84
+ GitRepoUrl :: Github { user : _, repo } => dirs . download_dir . join ( repo ) ,
85
85
}
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments