about summary refs log tree commit diff
path: root/fun/tvldb/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-01T16·56+0100
committertazjin <mail@tazj.in>2020-07-01T17·32+0000
commit78bfb66a95ad1c105e4ab21e0fc3f5b85ade1982 (patch)
tree7fd30448f2ec0f8a21152c2e4e95b35f63d30d1b /fun/tvldb/src/models.rs
parent03076c3977bad32c017810e13adb428411be63cd (diff)
style(tvldb): Add blank lines between items r/1145
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 <eta@theta.eu.org>
Tested-by: BuildkiteCI
Diffstat (limited to '')
-rw-r--r--fun/tvldb/src/models.rs3
1 files changed, 3 insertions, 0 deletions
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> {