Skip to content

Commit 0c04a7f

Browse files
Merge pull request #126 from ChrisRackauckas/fix-formatting
Apply JuliaFormatter to fix code formatting
2 parents 6a18faf + a54057b commit 0c04a7f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ext/PreallocationToolsSparseConnectivityTracerExt.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ module PreallocationToolsSparseConnectivityTracerExt
33
using PreallocationTools: PreallocationTools, DiffCache, get_tmp
44
using SparseConnectivityTracer: AbstractTracer, Dual
55

6-
function PreallocationTools.get_tmp(dc::DiffCache, u::T) where {T <: Union{AbstractTracer, Dual}}
6+
function PreallocationTools.get_tmp(
7+
dc::DiffCache, u::T) where {T <: Union{AbstractTracer, Dual}}
78
return get_tmp(dc, typeof(u))
89
end
910

10-
function PreallocationTools.get_tmp(dc::DiffCache, u::AbstractArray{<:T}) where {T <: Union{AbstractTracer, Dual}}
11+
function PreallocationTools.get_tmp(
12+
dc::DiffCache, u::AbstractArray{<:T}) where {T <: Union{AbstractTracer, Dual}}
1113
return get_tmp(dc, eltype(u))
1214
end
1315

14-
function PreallocationTools.get_tmp(dc::DiffCache, ::Type{T}) where {T <: Union{AbstractTracer, Dual}}
16+
function PreallocationTools.get_tmp(
17+
dc::DiffCache, ::Type{T}) where {T <: Union{AbstractTracer, Dual}}
1518
# We allocate memory here since we assume that sparsity connection happens only
1619
# once (or maybe a few times). This simplifies the implementation and allows us
1720
# to save memory in the long run since we do not need to store an additional

test/core_dispatch.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ c = PreallocationTools.DiffCache(zeros(4), Val{4})
165165
@test structequal(a, b)
166166
@test structequal(a, b)
167167

168-
169168
# FixedSizeDiffCache get_tmp ReinterpretArray test
170169
# Ensures that get_tmp doesn't produce a Reinterpret array in some cases
171170

0 commit comments

Comments
 (0)