From 18a936775d270b80897e7804e9b71c855b609991 Mon Sep 17 00:00:00 2001 From: shove Date: Tue, 21 Nov 2023 07:43:02 +0800 Subject: [PATCH] set nil as the initial value of the struct reference type fields(part 2) (#259) --- src/repo.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo.v b/src/repo.v index f4d4c09..1818ed1 100644 --- a/src/repo.v +++ b/src/repo.v @@ -25,7 +25,7 @@ struct Repo { latest_update_hash string @[skip] latest_activity time.Time @[skip] mut: - git_repo &git.Repo @[skip] // libgit wrapper repo + git_repo &git.Repo = unsafe { nil } @[skip] // libgit wrapper repo webhook_secret string tags_count int nr_open_issues int @[orm: 'open_issues_count']