Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jul 3, 2024
1 parent 1f0e166 commit 56bec74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ struct ZeroPoly <: PolynomialSet end
struct NonNegPoly <: PolynomialSet end
struct PosDefPolyMatrix <: PolynomialSet end

function JuMP.function_string(
::MIME"text/plain",
p::_AE_APL,
)
function JuMP.function_string(::MIME"text/plain", p::_AE_APL)
return sprint(show, MIME"text/plain"(), p)
end
function JuMP.function_string(
mime::MIME"text/latex",
p::_AE_APL,
)
function JuMP.function_string(mime::MIME"text/latex", p::_AE_APL)
return SA.trim_LaTeX(mime, sprint(show, MIME"text/latex"(), p))
end

Expand Down
2 changes: 1 addition & 1 deletion src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function JuMP.value(p::MP.AbstractPolynomialLike{<:JuMP.AbstractJuMPScalar})
return JuMP.value(JuMP.value, p)
end

function JuMP.value(p::SA.AlgebraElement{A,<:JuMP.AbstractJuMPScalar}) where A
function JuMP.value(p::SA.AlgebraElement{A,<:JuMP.AbstractJuMPScalar}) where {A}
return JuMP.value(JuMP.value, p)
end

Expand Down

0 comments on commit 56bec74

Please sign in to comment.