Skip to content

Commit

Permalink
Replace structopt with clap.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkantor committed Jul 13, 2024
1 parent 58db6cd commit eccf094
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 169 deletions.
155 changes: 24 additions & 131 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ actix-rt = "1.1.1"
actix-web = "3.3.3"
anyhow = "1.0.86"
bytes = "0.5.6"
clap = { version = "4.5.9", features = ["derive"] }
futures = "0.3.30"
handlebars = "5.1.2"
log = "0.4.22"
Expand All @@ -33,7 +34,6 @@ mime_guess = "2.0.5"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
stderrlog = "0.6.0"
structopt = "0.3.26"
thiserror = "1.0.62"
walkdir = "2.5.0"

Expand Down
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct InvalidQueryStringError {
source: QueryPayloadError,
}

#[derive(Default)]
#[derive(Clone, Default)]
pub struct QueryString(HashMap<String, String>);

impl From<QueryString> for HashMap<String, String> {
Expand Down
Loading

0 comments on commit eccf094

Please sign in to comment.