We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fca053 commit 70f44faCopy full SHA for 70f44fa
1 file changed
src/serialization.jl
@@ -16,8 +16,7 @@ const SUPPORTED_TYPES = Dict{Symbol,Type}(
16
)
17
# n.b. Benchmark type not included here, since it is gensym'd
18
19
-const CUSTOM_CONVERT_TYPES = Type[]
20
-function _convert end
+function customisable_result_recover end
21
22
function JSON.lower(x::Union{values(SUPPORTED_TYPES)...})
23
d = Dict{String,Any}()
@@ -54,8 +53,8 @@ function recover(x::Vector)
54
53
for i in 1:fc
55
ft = fieldtype(T, i)
56
fn = String(fieldname(T, i))
57
- if ft in CUSTOM_CONVERT_TYPES
58
- xsi = _convert(ft, fields[fn])
+ if fn == "customisable_result"
+ xsi = customisable_result_recover(fields[fn])
59
elseif ft <: Function
60
xsi = BenchmarkTools._nothing_func
61
elseif ft <: get(SUPPORTED_TYPES, nameof(ft), Union{})
0 commit comments