Skip to content

Commit 97646d3

Browse files
authored
Merge pull request #119 from mkantor/clap
Replace `structopt` with `clap`.
2 parents 58db6cd + 7b578fd commit 97646d3

File tree

4 files changed

+46
-169
lines changed

4 files changed

+46
-169
lines changed

Cargo.lock

Lines changed: 24 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ actix-rt = "1.1.1"
2525
actix-web = "3.3.3"
2626
anyhow = "1.0.86"
2727
bytes = "0.5.6"
28+
clap = { version = "4.5.9", features = ["derive"] }
2829
futures = "0.3.30"
2930
handlebars = "5.1.2"
3031
log = "0.4.22"
@@ -33,7 +34,6 @@ mime_guess = "2.0.5"
3334
serde = { version = "1.0.204", features = ["derive"] }
3435
serde_json = "1.0.120"
3536
stderrlog = "0.6.0"
36-
structopt = "0.3.26"
3737
thiserror = "1.0.62"
3838
walkdir = "2.5.0"
3939

src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct InvalidQueryStringError {
2828
source: QueryPayloadError,
2929
}
3030

31-
#[derive(Default)]
31+
#[derive(Clone, Default)]
3232
pub struct QueryString(HashMap<String, String>);
3333

3434
impl From<QueryString> for HashMap<String, String> {

0 commit comments

Comments
 (0)