Skip to content

Commit

Permalink
Merge #586
Browse files Browse the repository at this point in the history
586: update yaup r=irevoire a=NoodleSamaChan

# Pull Request

## What does this PR do?
- Update Yaup 

## PR checklist
Please check if your PR fulfills the following requirements:
- [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [X] Have you read the contributing guidelines?
- [X] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: NoodleSamaChan <lferraraccio@outlook.com>
  • Loading branch information
meili-bors[bot] and NoodleSamaChan authored Jun 9, 2024
2 parents 061eef7 + 9f783c7 commit 71ecde0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit 71ecde0

Please sign in to comment.