From fa23bae44e865bafefd9ec7d5db6944242b332db Mon Sep 17 00:00:00 2001 From: Fengyang Wang Date: Sun, 25 Feb 2018 11:16:58 -0800 Subject: [PATCH] Updates for v0.7 (#246) --- src/Serializations.jl | 1 - src/Writer.jl | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializations.jl b/src/Serializations.jl index 6601879..e4398ce 100644 --- a/src/Serializations.jl +++ b/src/Serializations.jl @@ -4,7 +4,6 @@ JSON writer serialization contexts. This module defines the `Serialization` abstract type and several concrete implementations, as they relate to JSON. """ - module Serializations using ..Common diff --git a/src/Writer.jl b/src/Writer.jl index 577a0ad..054d259 100644 --- a/src/Writer.jl +++ b/src/Writer.jl @@ -23,6 +23,7 @@ struct CompositeTypeWrapper{T} fns::Vector{Symbol} end +CompositeTypeWrapper(x, syms) = CompositeTypeWrapper(x, collect(syms)) CompositeTypeWrapper(x) = CompositeTypeWrapper(x, fieldnames(typeof(x))) """