@@ -17,7 +17,7 @@ use xz2::read::XzDecoder;
1717
1818use crate :: {
1919 check_hash, create_tarball,
20- package:: { Info , Package , Source , StepVariant } ,
20+ package:: { Package , Source , StepVariant } ,
2121} ;
2222
2323pub async fn build ( ) -> Result < ( ) > {
@@ -46,7 +46,7 @@ pub async fn build() -> Result<()> {
4646 }
4747
4848 for source in & package. sources {
49- let file_path = fetch_and_verify_source ( & client, source, & info ) . await ?;
49+ let file_path = fetch_and_verify_source ( & client, source) . await ?;
5050 extract_source ( & file_path) ?;
5151 }
5252
@@ -68,7 +68,7 @@ pub async fn build() -> Result<()> {
6868 }
6969 }
7070 StepVariant :: Move { path } => {
71- fs:: create_dir_all ( & path) ?;
71+ fs:: create_dir_all ( path) ?;
7272
7373 working_dir = path. into ( ) ;
7474 }
@@ -81,7 +81,7 @@ pub async fn build() -> Result<()> {
8181 Ok ( ( ) )
8282}
8383
84- async fn fetch_and_verify_source ( client : & Client , source : & Source , info : & Info ) -> Result < PathBuf > {
84+ async fn fetch_and_verify_source ( client : & Client , source : & Source ) -> Result < PathBuf > {
8585 let url: Url = source. url . as_str ( ) . try_into ( ) ?;
8686
8787 let target_path = PathBuf :: from ( url. path_segments ( ) . unwrap ( ) . last ( ) . unwrap ( ) ) ;
0 commit comments