Skip to content

Commit a0ed45f

Browse files
committed
format
1 parent 4cddbe0 commit a0ed45f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/jump_moi_overloads.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ function MOI.set(
108108
set::JuMP.AbstractScalarSet,
109109
)
110110
JuMP.check_belongs_to_model(con_ref, model)
111-
return MOI.set(JuMP.backend(model), attr, JuMP.index(con_ref), JuMP.moi_set(set))
111+
return MOI.set(
112+
JuMP.backend(model),
113+
attr,
114+
JuMP.index(con_ref),
115+
JuMP.moi_set(set),
116+
)
112117
end
113118

114119
"""

test/parameters.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ import MathOptInterface as MOI
1414
import HiGHS
1515
import SCS
1616

17-
Base.isapprox(x::MOI.Parameter, y::MOI.Parameter; atol = 1e-10) =
18-
isapprox(x.value, y.value, atol = atol)
17+
function Base.isapprox(x::MOI.Parameter, y::MOI.Parameter; atol = 1e-10)
18+
return isapprox(x.value, y.value; atol = atol)
19+
end
1920

2021
function runtests()
2122
for name in names(@__MODULE__; all = true)

0 commit comments

Comments
 (0)