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 @@ -15,15 +15,13 @@ pub(crate) struct Dirs {
1515#[ derive( Debug , Copy , Clone ) ]
1616pub ( crate ) enum PathBase {
1717 Source ,
18- Download ,
1918 Build ,
2019}
2120
2221impl 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments