Skip to content

Commit b923d81

Browse files
willtebbuttgithub-actions[bot]
andauthored
Apply formatting suggestions
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e1462f0 commit b923d81

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/flatten.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function flatten(::Type{T}, x::Tuple) where {T<:Real}
8686
return reduce(vcat, x_vecs), unflatten_to_Tuple
8787
end
8888

89-
function flatten(::Type{T}, x::NamedTuple{names}) where {T<:Real, names}
89+
function flatten(::Type{T}, x::NamedTuple{names}) where {T<:Real,names}
9090
x_vec, unflatten = flatten(T, values(x))
9191
function unflatten_to_NamedTuple(v::AbstractVector{<:Real})
9292
v_vec_vec = unflatten(v)

src/parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function bounded(val::Real, lower_bound::Real, upper_bound::Real)
8484
return Bounded(inv_transform(val), lb, ub, transform, ε)
8585
end
8686

87-
struct Bounded{T<:Real,Tbound<:Real, V<:Bijector,Tε<:Real} <: AbstractParameter
87+
struct Bounded{T<:Real,Tbound<:Real,V<:Bijector,Tε<:Real} <: AbstractParameter
8888
unconstrained_value::T
8989
lower_bound::Tbound
9090
upper_bound::Tbound

src/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Test
77
using ParameterHandling: AbstractParameter, value
88

99
# Handles equality of structs / mutable structs.
10-
function default_equality(a::Ta, b::Tb; kwargs...) where {Ta, Tb}
10+
function default_equality(a::Ta, b::Tb; kwargs...) where {Ta,Tb}
1111
(isstructtype(Ta) && isstructtype(Tb)) || throw(error("Arguments aren't structs"))
1212
return all(t -> default_equality(t...; kwargs...), zip(fieldvalues(a), fieldvalues(b)))
1313
end

0 commit comments

Comments
 (0)