From 0a2e0dbaa27ee52e868e56d7524014b948bc7e5a Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Sat, 20 Apr 2024 20:05:55 +0200 Subject: [PATCH] Fixed formatting --- src/decoding.jl | 3 ++- test/decoding_tests.jl | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/decoding.jl b/src/decoding.jl index 1aa325f..a8abf90 100644 --- a/src/decoding.jl +++ b/src/decoding.jl @@ -44,4 +44,5 @@ function read_webp( )::Matrix{CT} where {CT <: Colorant} return decode(CT, Base.read(f); kwargs...) end -read_webp(f::Union{AbstractString, IO}; kwargs...)::Matrix{RGB{N0f8}} = read_webp(RGB{N0f8}, f; kwargs...) +read_webp(f::Union{AbstractString, IO}; kwargs...)::Matrix{RGB{N0f8}} = + read_webp(RGB{N0f8}, f; kwargs...) diff --git a/test/decoding_tests.jl b/test/decoding_tests.jl index f6028e7..dd7d571 100644 --- a/test/decoding_tests.jl +++ b/test/decoding_tests.jl @@ -45,7 +45,9 @@ using WebP @test size(image) == expected_image_size end - for TColor in [ARGB{N0f8}, BGR{N0f8}, BGRA{N0f8}, RGB{N0f8}, RGBA{N0f8}, Gray{N0f8}] + for TColor in [ + ARGB{N0f8}, BGR{N0f8}, BGRA{N0f8}, RGB{N0f8}, RGBA{N0f8}, Gray{N0f8} + ] @testset "WebP.read_webp($TColor, $(joinpath(gallery.url, filename)); $kwargs)" begin image = WebP.read_webp(TColor, file_path; kwargs...) @test size(image) == expected_image_size