From 7efb226ef908297e8791cade20d991784b4e8bfc Mon Sep 17 00:00:00 2001 From: Bung Date: Tue, 27 Dec 2022 03:47:09 +0800 Subject: [PATCH] remove types requiresInit pragma which conflicts with json, it always expect a value (#1051) --- src/nimblepkg/sha1hashes.nim | 2 +- src/nimblepkg/version.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimblepkg/sha1hashes.nim b/src/nimblepkg/sha1hashes.nim index 5c12cdb6f..854261705 100644 --- a/src/nimblepkg/sha1hashes.nim +++ b/src/nimblepkg/sha1hashes.nim @@ -8,7 +8,7 @@ type InvalidSha1HashError* = object of NimbleError ## Represents an error caused by invalid value of a sha1 hash. - Sha1Hash* {.requiresInit.} = object + Sha1Hash* = object ## Type representing a sha1 hash value. It can only be created by special ## procedure which validates the input. hashValue: string diff --git a/src/nimblepkg/version.nim b/src/nimblepkg/version.nim index 5515274ef..956b50710 100644 --- a/src/nimblepkg/version.nim +++ b/src/nimblepkg/version.nim @@ -6,7 +6,7 @@ import json, sets import common, strutils, tables, hashes, parseutils type - Version* {.requiresInit.} = object + Version* = object version: string VersionRangeEnum* = enum