encoding/cbor: minor things

This commit is contained in:
Laytan Laats
2024-03-04 17:26:19 +01:00
parent 21e6e28a3a
commit 7283b5e75c
3 changed files with 6 additions and 4 deletions
-2
View File
@@ -686,8 +686,6 @@ _unmarshal_map :: proc(d: Decoder, v: any, ti: ^reflect.Type_Info, hdr: Header,
return _unsupported(v, hdr)
}
// TODO: shrink excess.
raw_map := (^mem.Raw_Map)(v.data)
if raw_map.allocator.procedure == nil {
raw_map.allocator = context.allocator