Skip to content

Commit 512ed0a

Browse files
committed
Fix deserialization of hooks
1 parent f11b769 commit 512ed0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/serialization.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ function recover(x::Vector)
5555
fn = String(fieldname(T, i))
5656
if fn == "customisable_result"
5757
xsi = customisable_result_recover(fields[fn])
58-
elseif ft <: Function
58+
elseif fn in (
59+
"setup_prehook", "teardown_posthook", "sample_result", "prehook", "posthook"
60+
)
5961
xsi = BenchmarkTools._nothing_func
6062
elseif ft <: get(SUPPORTED_TYPES, nameof(ft), Union{})
6163
xsi = recover(fields[fn])

0 commit comments

Comments
 (0)