aboutsummaryrefslogtreecommitdiff
path: root/src/models/mod.rs
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jake@jakeswenson.com> 2022-05-17 22:36:03 -0700
committerGravatar Jake Swenson <jake@jakeswenson.com> 2022-05-17 22:36:03 -0700
commit3261af8d715d05d1b4a25c54dbb81ddb9d5ce5f7 (patch)
treeda87200eb39553f4390c9d6e8f74166df6e5de13 /src/models/mod.rs
parent3ca93ff3315b317384e72914367905cee9cabc57 (diff)
downloadnotion-3261af8d715d05d1b4a25c54dbb81ddb9d5ce5f7.tar.gz
notion-3261af8d715d05d1b4a25c54dbb81ddb9d5ce5f7.tar.zst
notion-3261af8d715d05d1b4a25c54dbb81ddb9d5ce5f7.zip
style(cargo fmt): Format code
Diffstat (limited to 'src/models/mod.rs')
-rw-r--r--src/models/mod.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/models/mod.rs b/src/models/mod.rs
index 175f3c5..aca6cfe 100644
--- a/src/models/mod.rs
+++ b/src/models/mod.rs
@@ -249,7 +249,6 @@ pub enum FileObject {
External { external: ExternalFileObject },
}
-
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
pub struct Callout {
pub rich_text: Vec<RichText>,
@@ -413,12 +412,8 @@ pub struct TemplateFields {
#[serde(tag = "type")]
#[serde(rename_all = "snake_case")]
pub enum LinkToPageFields {
- PageId {
- page_id: PageId
- },
- DatabaseId {
- database_id: DatabaseId
- },
+ PageId { page_id: PageId },
+ DatabaseId { database_id: DatabaseId },
}
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
@@ -649,7 +644,7 @@ impl AsIdentifier<BlockId> for Block {
| SyncedBlock { common, .. }
| Table { common, .. }
| TableRow { common, .. }
- | Unsupported { common, .. } => { &common.id }
+ | Unsupported { common, .. } => &common.id,
Unknown => {
panic!("Trying to reference identifier for unknown block!")
}