aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 01:12:55 +0200
committerTeddy Wing2021-05-30 01:18:58 +0200
commit98cc67ceb69eea34e61ca08e51cd89a4bb483d66 (patch)
tree9158ab6da8ac253ad2b624ff9e8d82afc58a6f4f
parent278db85ab836948bc11fe2d26da126fc7695c083 (diff)
downloadreflectub-98cc67ceb69eea34e61ca08e51cd89a4bb483d66.tar.bz2
database::Repo: Make `id` non-optional
-rw-r--r--src/database.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.rs b/src/database.rs
index e4ca5e9..4c14f2e 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -5,7 +5,7 @@ use crate::github::Repo as GithubRepo;
#[derive(Debug)]
pub struct Repo {
- id: Option<i64>,
+ id: i64,
name: Option<String>,
updated_at: Option<String>,
}
@@ -68,7 +68,7 @@ impl Db {
Ok(
Repo {
- id: Some(row.get(0)),
+ id: row.get(0),
name: Some(row.get(1)),
updated_at: None,
}