aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bc4b0e7..2b9711b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -72,7 +72,10 @@ impl NotionApi {
Ok(Self { client })
}
- async fn make_json_request(&self, request: RequestBuilder) -> Result<Object, Error> {
+ async fn make_json_request(
+ &self,
+ request: RequestBuilder,
+ ) -> Result<Object, Error> {
let request = request.build()?;
let url = request.url();
tracing::trace!(
@@ -158,7 +161,10 @@ impl NotionApi {
}
/// Get a page by [PageId].
- pub async fn get_page<T: AsIdentifier<PageId>>(&self, page_id: T) -> Result<Page, Error> {
+ pub async fn get_page<T: AsIdentifier<PageId>>(
+ &self,
+ page_id: T,
+ ) -> Result<Page, Error> {
let result = self
.make_json_request(self.client.get(format!(
"https://api.notion.com/v1/pages/{}",