fix: extractAlloc of json.Values from arrays
This commit is contained in:
parent
2a23d8f54b
commit
36bf0aea8f
1 changed files with 3 additions and 1 deletions
|
|
@ -1141,7 +1141,9 @@ fn GenericExtractorAlloc(T: type) type {
|
|||
}
|
||||
|
||||
pub fn extract(self: Self, iter: *[]const u8) Error!bool {
|
||||
if (comptime isExtractableAlloc(T)) {
|
||||
if (comptime T == json.Value) {
|
||||
return matchJsonValue(iter, self.dest, self.allocator);
|
||||
} else if (comptime isExtractableAlloc(T)) {
|
||||
return self.dest.cborExtract(iter, self.allocator);
|
||||
} else {
|
||||
switch (comptime @typeInfo(T)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue