File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub fn extract_archive(bytes: Response, path: &Path) -> Result<()> {
6565 let mut archive = Archive :: new ( tar) ;
6666
6767 let version_dir_path = path. to_owned ( ) ;
68- create_dir_all ( version_dir_path. to_owned ( ) ) . expect ( "fuck" ) ;
68+ create_dir_all ( version_dir_path) . expect ( "fuck" ) ;
6969
7070 println ! ( "Extracting..." ) ;
7171
@@ -78,7 +78,7 @@ pub fn extract_archive(bytes: Response, path: &Path) -> Result<()> {
7878 let file_path = file_path. to_str ( ) . unwrap ( ) ;
7979
8080 let new_path: PathBuf = if let Some ( index) = file_path. find ( '/' ) {
81- path. to_owned ( ) . join ( file_path[ index + 1 ..] . to_owned ( ) )
81+ path. to_owned ( ) . join ( file_path[ index + 1 ..] )
8282 } else {
8383 // This happens if it's the root index, the base folder
8484 path. to_owned ( )
You can’t perform that action at this time.
0 commit comments