Skip to content

Commit

Permalink
Fix deserialization of hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Jun 20, 2024
1 parent f11b769 commit 512ed0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/serialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function recover(x::Vector)
fn = String(fieldname(T, i))
if fn == "customisable_result"
xsi = customisable_result_recover(fields[fn])
elseif ft <: Function
elseif fn in (
"setup_prehook", "teardown_posthook", "sample_result", "prehook", "posthook"
)
xsi = BenchmarkTools._nothing_func
elseif ft <: get(SUPPORTED_TYPES, nameof(ft), Union{})
xsi = recover(fields[fn])
Expand Down

0 comments on commit 512ed0a

Please sign in to comment.