Skip to content

Commit

Permalink
fix(build): fix build on nightly
Browse files Browse the repository at this point in the history
Signed-off-by: DragonBillow <[email protected]>
  • Loading branch information
cathaysia committed Feb 2, 2024
1 parent 3a94a14 commit ad738ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub async fn dump<'a>(
flags: RequestFlags::default().bits(),
};

let make_request = async move |client: &reqwest::Client,
let make_request = async move |client: reqwest::Client,
query: Query|
-> anyhow::Result<data_struct::IRawGalleryQueryResult> {
let body = serde_json::to_string(&query)?;
Expand All @@ -58,7 +58,7 @@ pub async fn dump<'a>(
let mut futures = Vec::default();
loop {
let query = make_query(start as u64);
match make_request(&client.client, query).await {
match make_request(client.client.clone(), query).await {
Ok(res) => {
if res.results.is_empty() {
break;
Expand Down

0 comments on commit ad738ea

Please sign in to comment.