From 27e00ebff87723957714de0c6a8a26b3ca2cf806 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Dec 2021 23:21:41 +0100 Subject: [PATCH] Format .jl files [skip ci] (#4012) Co-authored-by: t-bltg --- src/utils.jl | 6 ++++-- test/runtests.jl | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 322f6d47..866ff1d6 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -216,9 +216,11 @@ maketuple(x::Real) = (x, x) maketuple(x::Tuple{T,S}) where {T,S} = x RecipesPipeline.unzip(v) = unzip(v) -RecipesPipeline.unzip(points::AbstractVector{<:GeometryBasics.Point}) = unzip(Tuple.(points)) +RecipesPipeline.unzip(points::AbstractVector{<:GeometryBasics.Point}) = + unzip(Tuple.(points)) RecipesPipeline.unzip(points::AbstractVector{GeometryBasics.Point{N,T}}) where {N,T} = - isbitstype(T) && sizeof(T) > 0 ? unzip(reinterpret(NTuple{N,T}, points)) : unzip(Tuple.(points)) + isbitstype(T) && sizeof(T) > 0 ? unzip(reinterpret(NTuple{N,T}, points)) : + unzip(Tuple.(points)) # given 2-element lims and a vector of data x, widen lims to account for the extrema of x function _expand_limits(lims, x) diff --git a/test/runtests.jl b/test/runtests.jl index 44c9e4d8..66885cff 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -191,7 +191,10 @@ end ) for z in zipped @test isequal(collect(zip(Plots.RecipesPipeline.unzip(z)...)), z) - @test isequal(collect(zip(Plots.RecipesPipeline.unzip(GeometryBasics.Point.(z))...)), z) + @test isequal( + collect(zip(Plots.RecipesPipeline.unzip(GeometryBasics.Point.(z))...)), + z, + ) end op1 = Plots.process_clims((1.0, 2.0)) op2 = Plots.process_clims((1, 2.0))