Skip to content

Commit de616d6

Browse files
committed
Fix format
1 parent e5014a7 commit de616d6

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/Utilities/copy.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ function _pass_attribute(
4646
index_map,
4747
::MOI.ConstraintFunction,
4848
)
49-
return _pass_attribute(
50-
dest,
51-
src,
52-
index_map,
53-
UnsafeConstraintFunction(),
54-
)
49+
return _pass_attribute(dest, src, index_map, UnsafeConstraintFunction())
5550
end
5651

5752
function _pass_attribute(

src/Utilities/model.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,11 @@ end
402402

403403
function MOI.get(
404404
model::AbstractModel,
405-
attr::Union{UnsafeConstraintFunction,MOI.ConstraintFunction,MOI.ConstraintSet},
405+
attr::Union{
406+
UnsafeConstraintFunction,
407+
MOI.ConstraintFunction,
408+
MOI.ConstraintSet,
409+
},
406410
ci::MOI.ConstraintIndex,
407411
)
408412
return MOI.get(constraints(model, ci), attr, ci)
@@ -530,7 +534,10 @@ function MOI.supports(model::AbstractModel, attr::MOI.ObjectiveFunction)
530534
return MOI.supports(model.objective, attr)
531535
end
532536

533-
function MOI.get(model::AbstractModel, attr::Union{UnsafeObjectiveFunction,MOI.ObjectiveFunction})
537+
function MOI.get(
538+
model::AbstractModel,
539+
attr::Union{UnsafeObjectiveFunction,MOI.ObjectiveFunction},
540+
)
534541
return MOI.get(model.objective, attr)
535542
end
536543

src/Utilities/vector_of_constraints.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ end
9898

9999
struct UnsafeConstraintFunction end
100100

101-
function MOI.get(model::MOI.ModelLike, ::UnsafeConstraintFunction, ci::MOI.ConstraintIndex)
101+
function MOI.get(
102+
model::MOI.ModelLike,
103+
::UnsafeConstraintFunction,
104+
ci::MOI.ConstraintIndex,
105+
)
102106
return MOI.get(model, MOI.ConstraintFunction(), ci)
103107
end
104108

0 commit comments

Comments
 (0)