Skip to content

Commit 1b26127

Browse files
committed
update dependencies, run clippy
1 parent f1b373a commit 1b26127

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "xcompress"
3-
version = "0.11.7"
3+
version = "0.11.8"
44
authors = ["Magic Len <[email protected]>"]
55
edition = "2021"
66
repository = "https://github.com/magiclen/xcompress"
@@ -18,9 +18,9 @@ codegen-units = 1
1818
panic = "abort"
1919

2020
[dependencies]
21-
clap = "3.1.6"
21+
clap = "3.2.23"
2222
concat-with = "0.2"
23-
terminal_size = "0.1"
23+
terminal_size = "0.2"
2424

2525
execute = "0.2.4"
2626
num_cpus = "1.8.0"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ EXECUTABLE_NAME := xcompress
22

33
all: ./target/x86_64-unknown-linux-musl/release/$(EXECUTABLE_NAME)
44

5-
./target/x86_64-unknown-linux-musl/release/$(EXECUTABLE_NAME): $(shell find . -type f -iname '*.rs' -o -name 'Cargo.toml' | sed 's/ /\\ /g')
5+
./target/x86_64-unknown-linux-musl/release/$(EXECUTABLE_NAME): $(shell find . -type f -iname '*.rs' -o -name 'Cargo.toml' | grep -v ./target | sed 's/ /\\ /g')
66
cargo build --release --target x86_64-unknown-linux-musl
77
strip ./target/x86_64-unknown-linux-musl/release/$(EXECUTABLE_NAME)
88

src/main.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ fn handle_archive(
501501
}
502502

503503
if best_compression {
504-
command2.args(&["-9", "-e"]);
504+
command2.args(["-9", "-e"]);
505505
}
506506

507507
command2.stdout(File::create(output_path.as_ref())?);
@@ -538,7 +538,7 @@ fn handle_archive(
538538
}
539539

540540
if best_compression {
541-
command2.args(&["-9", "-e"]);
541+
command2.args(["-9", "-e"]);
542542
}
543543

544544
command2.stdout(File::create(output_path.as_ref())?);
@@ -577,7 +577,7 @@ fn handle_archive(
577577
}
578578

579579
if best_compression {
580-
command2.args(&["-9", "-e"]);
580+
command2.args(["-9", "-e"]);
581581
}
582582

583583
command2.stdout(File::create(output_path.as_ref())?);
@@ -614,7 +614,7 @@ fn handle_archive(
614614
}
615615

616616
if best_compression {
617-
command2.args(&["-9", "-e"]);
617+
command2.args(["-9", "-e"]);
618618
}
619619

620620
command2.stdout(File::create(output_path.as_ref())?);
@@ -655,7 +655,7 @@ fn handle_archive(
655655
);
656656

657657
if best_compression {
658-
command2.args(&["-m0=lzma2", "-mx", "-ms=on"]);
658+
command2.args(["-m0=lzma2", "-mx", "-ms=on"]);
659659
}
660660

661661
if !password.is_empty() {
@@ -708,7 +708,7 @@ fn handle_archive(
708708
}
709709

710710
if best_compression {
711-
command2.args(&["--ultra", "-22"]);
711+
command2.args(["--ultra", "-22"]);
712712
}
713713

714714
let output = command1.execute_multiple_output(&mut [&mut command2])?;
@@ -726,7 +726,7 @@ fn handle_archive(
726726
}
727727

728728
if best_compression {
729-
command2.args(&["--ultra", "-22"]);
729+
command2.args(["--ultra", "-22"]);
730730
}
731731

732732
let output = command1.execute_multiple_output(&mut [&mut command2])?;
@@ -1088,7 +1088,7 @@ fn handle_archive(
10881088
}
10891089

10901090
if best_compression {
1091-
command.args(&["-9", "-e"]);
1091+
command.args(["-9", "-e"]);
10921092
}
10931093

10941094
command.stdout(File::create(output_path.as_ref())?);
@@ -1123,7 +1123,7 @@ fn handle_archive(
11231123
}
11241124

11251125
if best_compression {
1126-
command.args(&["-9", "-e"]);
1126+
command.args(["-9", "-e"]);
11271127
}
11281128

11291129
command.stdout(File::create(output_path.as_ref())?);
@@ -1167,7 +1167,7 @@ fn handle_archive(
11671167
}
11681168

11691169
if best_compression {
1170-
command.args(&["-9", "-e"]);
1170+
command.args(["-9", "-e"]);
11711171
}
11721172

11731173
command.stdout(File::create(output_path.as_ref())?);
@@ -1202,7 +1202,7 @@ fn handle_archive(
12021202
}
12031203

12041204
if best_compression {
1205-
command.args(&["-9", "-e"]);
1205+
command.args(["-9", "-e"]);
12061206
}
12071207

12081208
command.stdout(File::create(output_path.as_ref())?);
@@ -1236,7 +1236,7 @@ fn handle_archive(
12361236
command_args!(p7z_path, "a", "-t7z", "-aoa", format!("-mmt{}", threads));
12371237

12381238
if best_compression {
1239-
command.args(&["-m0=lzma2", "-mx", "-ms=on"]);
1239+
command.args(["-m0=lzma2", "-mx", "-ms=on"]);
12401240
}
12411241

12421242
if !password.is_empty() {
@@ -1413,7 +1413,7 @@ fn handle_archive(
14131413
let mut command = command_args!(rar_path, "a", "-ep1", format!("-mt{}", threads));
14141414

14151415
if best_compression {
1416-
command.args(&["-ma5", "-m5", "-s"]);
1416+
command.args(["-ma5", "-m5", "-s"]);
14171417
}
14181418

14191419
if !password.is_empty() {
@@ -1470,7 +1470,7 @@ fn handle_archive(
14701470
}
14711471

14721472
if best_compression {
1473-
command.args(&["--ultra", "-22"]);
1473+
command.args(["--ultra", "-22"]);
14741474
}
14751475

14761476
let output = command.execute_output()?;
@@ -1488,7 +1488,7 @@ fn handle_archive(
14881488
}
14891489

14901490
if best_compression {
1491-
command.args(&["--ultra", "-22"]);
1491+
command.args(["--ultra", "-22"]);
14921492
}
14931493

14941494
let output = command.execute_output()?;
@@ -2180,7 +2180,7 @@ fn handle_extract(
21802180
command.arg("-qq");
21812181
}
21822182

2183-
command.args(&["-O", "UTF-8", "-o"]);
2183+
command.args(["-O", "UTF-8", "-o"]);
21842184
command.arg(input_path);
21852185
command.arg("-d");
21862186
command.arg(output_path.as_ref());

0 commit comments

Comments
 (0)