Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydellavecchia committed Jan 17, 2025
1 parent 2295584 commit a5fab69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Serialization/serializers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ function deserializer_open(io::IO, serializer::IPCSerializer, with_attrs::Bool)
return DeserializerState(serializer, obj, nothing, nothing, with_attrs)
end

function attrs_list(s::SerializerState, T::Type)
return get(s.type_attr_map, encode_type(T), Symbol[])
function attrs_list(s::U, T::Type) where U <: Union{DeserializerState, SerializerState}
return get(type_attr_map, encode_type(T), Symbol[])
end

with_attrs(s::T) where T <: Union{DeserializerState, SerializerState} = s.with_attrs
Expand Down

0 comments on commit a5fab69

Please sign in to comment.