Skip to content

update yaup #586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing"] }
yaup = "0.2.0"
yaup = "0.3.0"
either = { version = "1.8.0", features = ["serde"] }
thiserror = "1.0.37"
meilisearch-index-setting-macro = { path = "meilisearch-index-setting-macro", version = "0.26.1" }
Expand Down
2 changes: 1 addition & 1 deletion examples/cli-app-with-awc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ lazy_static = "1.4.0"
awc = "3.4"
async-trait = "0.1.51"
tokio = { version = "1.27.0", features = ["full"] }
yaup = "0.2.0"
yaup = "0.3.0"
tokio-util = { version = "0.7.10", features = ["full"] }
actix-rt = "2.9.0"
anyhow = "1.0.82"
2 changes: 1 addition & 1 deletion examples/cli-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ futures = "0.3"
serde = { version="1.0", features = ["derive"] }
serde_json = "1.0"
lazy_static = "1.4.0"
yaup = "0.2.0"
yaup = "0.3.0"
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ mod test {
"Impossible to generate the token, jsonwebtoken encountered an error: InvalidToken"
);

let error = Error::Yaup(yaup::error::Error::Custom("Test yaup error".to_string()));
let error = Error::Yaup(yaup::Error::Custom("Test yaup error".to_string()));
assert_eq!(
error.to_string(),
"Internal Error: could not parse the query parameters: Test yaup error"
Expand Down
2 changes: 1 addition & 1 deletion src/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl HttpClient for ReqwestClient {
let url = if query.is_empty() {
url.to_string()
} else {
format!("{url}?{query}")
format!("{url}{query}")
};

let mut request = self.client.request(verb(&method), &url);
Expand Down
Loading