diff options
Diffstat (limited to 'src/models/mod.rs')
-rw-r--r-- | src/models/mod.rs | 11 |
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!") } |