Skip to content

Commit b03e599

Browse files
style: run JuliaFormatter
1 parent df34507 commit b03e599

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ext/DynamicExpressionsOptimExt.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using DynamicExpressions:
1010
get_number_type
1111

1212
import Optim: Optim, OptimizationResults
13-
import NLSolversBase
13+
using NLSolversBase: NLSolversBase
1414

1515
#! format: off
1616
"""
@@ -102,9 +102,7 @@ const _INPLACEOBJECTIVE_SPEC_V8 = (
102102
xv_tail=(:hvp, :fghvp, :fjvp),
103103
)
104104
const _INPLACEOBJECTIVE_SPEC_V7 = (
105-
fields=(:df, :fdf, :fgh, :hv, :fghv),
106-
x_last=(:df, :fdf, :fgh),
107-
xv_tail=(:hv, :fghv),
105+
fields=(:df, :fdf, :fgh, :hv, :fghv), x_last=(:df, :fdf, :fgh), xv_tail=(:hv, :fghv)
108106
)
109107

110108
@inline function _wrap_inplaceobjective_field(
@@ -149,7 +147,7 @@ function wrap_func(
149147
elseif fieldnames(NLSolversBase.InplaceObjective) == _INPLACEOBJECTIVE_SPEC_V7.fields
150148
# NLSolversBase v7 / Optim v1
151149
return _wrap_inplaceobjective(f, tree, refs, _INPLACEOBJECTIVE_SPEC_V7)
152-
# (Optim < 1 is no longer supported.)
150+
# (Optim < 1 is no longer supported.)
153151
else
154152
fields = fieldnames(NLSolversBase.InplaceObjective)
155153
throw(

0 commit comments

Comments
 (0)