Skip to content

Commit 7614fdc

Browse files
Merge pull request #12 from JuliaDiffEq/fbot/deps
Fix deprecations
2 parents 9b96e2c + cef3d3c commit 7614fdc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DiffEqBiological.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module DiffEqBiological
55
using DiffEqJump
66

77
using Compat
8-
@compat abstract type AbstractReaction end
8+
abstract type AbstractReaction end
99

1010
import DataStructures: OrderedDict
1111

src/reactions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
immutable Reaction{T,T2,N,N2} <: AbstractReaction
1+
struct Reaction{T,T2,N,N2} <: AbstractReaction
22
rate_constant::T
33
reactants::NTuple{N,Int}
44
stoichiometry::NTuple{N2,NTuple{2,T2}}
@@ -16,7 +16,7 @@ function Reaction(rate_constant,reactants::AbstractArray,stoichiometry::Abstract
1616
Reaction(rate_constant,tuple(reactants...),tuple(stoichiometry...))
1717
end
1818

19-
immutable VariableRateReaction{T,T2,I,N,N2} <: AbstractReaction
19+
struct VariableRateReaction{T,T2,I,N,N2} <: AbstractReaction
2020
rate_constant::T
2121
reactants::NTuple{N,Int}
2222
stoichiometry::NTuple{N2,NTuple{2,T2}}
@@ -50,7 +50,7 @@ function VariableRateReaction(rate_constant,reactants::Tuple,stoichiometry::Tupl
5050
abstol,reltol)
5151
end
5252

53-
immutable ReactionSet{T}
53+
struct ReactionSet{T}
5454
reactions::T
5555
end
5656

0 commit comments

Comments
 (0)