aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.rs')
-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,
}