Skip to content

Commit 35da2b2

Browse files
committed
chore: run formatter
1 parent cf61da1 commit 35da2b2

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

impit-python/src/client.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,28 @@ impl Client {
419419
let response = match method.to_lowercase().as_str() {
420420
"get" => self.impit.get(url, Some(body.into()), Some(options)).await,
421421
"post" => self.impit.post(url, Some(body.into()), Some(options)).await,
422-
"patch" => self.impit.patch(url, Some(body.into()), Some(options)).await,
422+
"patch" => {
423+
self.impit
424+
.patch(url, Some(body.into()), Some(options))
425+
.await
426+
}
423427
"put" => self.impit.put(url, Some(body.into()), Some(options)).await,
424-
"options" => self.impit.options(url, Some(body.into()), Some(options)).await,
425-
"trace" => self.impit.trace(url, Some(body.into()), Some(options)).await,
428+
"options" => {
429+
self.impit
430+
.options(url, Some(body.into()), Some(options))
431+
.await
432+
}
433+
"trace" => {
434+
self.impit
435+
.trace(url, Some(body.into()), Some(options))
436+
.await
437+
}
426438
"head" => self.impit.head(url, Some(body.into()), Some(options)).await,
427-
"delete" => self.impit.delete(url, Some(body.into()), Some(options)).await,
439+
"delete" => {
440+
self.impit
441+
.delete(url, Some(body.into()), Some(options))
442+
.await
443+
}
428444
_ => Err(ImpitError::InvalidMethod(method.to_string())),
429445
};
430446

impit/src/impit.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,9 @@ impl<CookieStoreImpl: CookieStore + 'static> Impit<CookieStoreImpl> {
493493
body: request.body,
494494
};
495495

496-
let primary_result = self.execute_request(client, &mut prepared, timeout, h3).await;
496+
let primary_result = self
497+
.execute_request(client, &mut prepared, timeout, h3)
498+
.await;
497499

498500
let response = match primary_result {
499501
Ok(resp) => resp,

0 commit comments

Comments
 (0)