From 78bfb66a95ad1c105e4ab21e0fc3f5b85ade1982 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 1 Jul 2020 17:56:08 +0100 Subject: style(tvldb): Add blank lines between items This makes the code slightly more readable. For users that use editors without semantic navigation, this also makes it easier to jump around between items in the files. I looked into whether a rustfmt setting exists for this, but unfortunately the answer is currently no. Change-Id: I37b19fa6ab038c71b924c45dbc12b298e660e8cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/827 Reviewed-by: BuildkiteCI Reviewed-by: eta Tested-by: BuildkiteCI --- fun/tvldb/src/models.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fun/tvldb/src/models.rs') diff --git a/fun/tvldb/src/models.rs b/fun/tvldb/src/models.rs index 78ddce0af9..721efbbb2e 100644 --- a/fun/tvldb/src/models.rs +++ b/fun/tvldb/src/models.rs @@ -7,6 +7,7 @@ pub struct Keyword { pub name: String, pub chan: String, } + #[derive(Queryable)] pub struct Entry { pub id: i32, @@ -16,12 +17,14 @@ pub struct Entry { pub creation_ts: NaiveDateTime, pub created_by: String, } + #[derive(Insertable)] #[table_name = "keywords"] pub struct NewKeyword<'a> { pub name: &'a str, pub chan: &'a str, } + #[derive(Insertable)] #[table_name = "entries"] pub struct NewEntry<'a> { -- cgit 1.4.1