Skip to content

Commit 3074d60

Browse files
committed
[Nonlinear] make _(Function|Subexpression)Storage immutable
1 parent d389ba1 commit 3074d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nonlinear/ReverseAD/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Use of this source code is governed by an MIT-style license that can be found
55
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
66

7-
mutable struct _SubexpressionStorage
7+
struct _SubexpressionStorage
88
nodes::Vector{Nonlinear.Node}
99
adj::SparseArrays.SparseMatrixCSC{Bool,Int}
1010
const_values::Vector{Float64}
@@ -41,7 +41,7 @@ mutable struct _SubexpressionStorage
4141
end
4242
end
4343

44-
mutable struct _FunctionStorage
44+
struct _FunctionStorage
4545
nodes::Vector{Nonlinear.Node}
4646
adj::SparseArrays.SparseMatrixCSC{Bool,Int}
4747
const_values::Vector{Float64}

0 commit comments

Comments
 (0)