Skip to content

Commit 396aee0

Browse files
committed
fix formatting
1 parent a8603e2 commit 396aee0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/serialization/DFGStructStyles.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,17 @@ end
4747
# Complex Serialization
4848
StructUtils.structlike(::DFGJSONStyle, ::Type{<:Complex}) = false
4949
StructUtils.lower(::DFGJSONStyle, x::Complex) = (real(x), imag(x))
50-
function StructUtils.lift(::DFGJSONStyle, ::Type{T}, x::JSON.LazyValue) where T <: Complex
50+
function StructUtils.lift(::DFGJSONStyle, ::Type{T}, x::JSON.LazyValue) where {T <: Complex}
5151
return T(x[1][], x[2][]), nothing
5252
end
5353

5454
# Above does not work for Arrya{ComplexF64, 0}
5555
StructUtils.lower(::DFGJSONStyle, x::AbstractArray{<:Complex, 0}) = (real(x), imag(x))
56-
function StructUtils.lift(::DFGJSONStyle, ::Type{A}, x::JSON.LazyValue) where A <: AbstractArray{T,0} where T <: Complex
56+
function StructUtils.lift(
57+
::DFGJSONStyle,
58+
::Type{A},
59+
x::JSON.LazyValue,
60+
) where {A <: AbstractArray{T, 0}} where {T <: Complex}
5761
m = A(undef)
5862
m[] = (T(x[1][], x[2][]))
5963
return m, nothing

test/testSerializingVariables.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ end
110110
states = DFG.unpackOldState.(oldstates)
111111
# just a spot check
112112
@test issetequal(getLabel.(states), [:default, :parametric, :graphinit])
113-
end
113+
end

0 commit comments

Comments
 (0)