From 3261af8d715d05d1b4a25c54dbb81ddb9d5ce5f7 Mon Sep 17 00:00:00 2001 From: Jake Swenson Date: Tue, 17 May 2022 22:36:03 -0700 Subject: style(cargo fmt): Format code --- src/models/mod.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/models/mod.rs') 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, @@ -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 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!") } -- cgit v1.2.3