Skip to content

Commit e5014a7

Browse files
committed
Fixes
1 parent 79ede2c commit e5014a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utilities/vector_of_constraints.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end
9999
struct UnsafeConstraintFunction end
100100

101101
function MOI.get(model::MOI.ModelLike, ::UnsafeConstraintFunction, ci::MOI.ConstraintIndex)
102-
return MOI.get(model, MOI.ConstraintFunction, ci)
102+
return MOI.get(model, MOI.ConstraintFunction(), ci)
103103
end
104104

105105
function MOI.get(
@@ -117,7 +117,7 @@ function MOI.get(
117117
::MOI.ConstraintFunction,
118118
ci::MOI.ConstraintIndex{F,S},
119119
) where {F,S}
120-
return copy(MOI.get(v, MOI.UnsafeConstraintFunction, ci))
120+
return copy(MOI.get(v, UnsafeConstraintFunction(), ci))
121121
end
122122

123123
function MOI.get(

0 commit comments

Comments
 (0)