Skip to content

Commit c91a621

Browse files
authored
Tidy package imports (#34)
1 parent 5f124e6 commit c91a621

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/MathOptSymbolicAD.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66

77
module MathOptSymbolicAD
88

9-
import Base.Meta: isexpr
10-
import MathOptInterface
9+
import MathOptInterface as MOI
1110
import SparseArrays
1211
import Symbolics
1312

14-
const MOI = MathOptInterface
15-
1613
abstract type AbstractSymbolicBackend <:
1714
MOI.Nonlinear.AbstractAutomaticDifferentiation end
1815

src/nonlinear_oracle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Parse `expr` into `f` and return a `_Node`.
173173
This function gets called recursively.
174174
"""
175175
function _Node(f::_Function, expr::Expr)
176-
@assert isexpr(expr, :call)
176+
@assert Meta.isexpr(expr, :call)
177177
# Performance optimization: most calls will be unary or binary
178178
# operators. Therefore, we can specialize an if-statement to handle the
179179
# common cases without needing to splat.

0 commit comments

Comments
 (0)