Skip to content

Commit 3f3ca3e

Browse files
committed
fix more clippy warnings
1 parent e22360f commit 3f3ca3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/archives.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)