diff --git a/lib/SimpleNonlinearSolve/src/utils.jl b/lib/SimpleNonlinearSolve/src/utils.jl index 9008171d3..16cf5142d 100644 --- a/lib/SimpleNonlinearSolve/src/utils.jl +++ b/lib/SimpleNonlinearSolve/src/utils.jl @@ -118,7 +118,8 @@ end function check_termination(cache, fx, x, xo, _, ::AbstractSafeNonlinearTerminationMode) return cache(fx, x, xo), cache.retcode, fx, x end -function check_termination(cache, fx, x, xo, prob, ::AbstractSafeBestNonlinearTerminationMode) +function check_termination( + cache, fx, x, xo, prob, ::AbstractSafeBestNonlinearTerminationMode) if cache(fx, x, xo) x = cache.u if SciMLBase.isinplace(prob)