aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.rs')
-rw-r--r--src/database.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database.rs b/src/database.rs
index 2a53f0b..c07eca0 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -11,12 +11,12 @@ pub struct Repo {
updated_at: Option<String>,
}
-impl From<github::Repo> for Repo {
- fn from(repo: github::Repo) -> Self {
+impl From<&github::Repo> for Repo {
+ fn from(repo: &github::Repo) -> Self {
Self {
id: repo.id,
- name: Some(repo.name),
- updated_at: Some(repo.updated_at),
+ name: Some(repo.name.clone()),
+ updated_at: Some(repo.updated_at.clone()),
}
}
}