Skip to content

Commit 5eb8f2a

Browse files
Fix deprecations
1 parent 5f72f54 commit 5eb8f2a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/continuous.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ struct Continuous <: ContinuousProcess
3535
end
3636
end
3737

38-
function Continuous{I<:Integrator}(model::Model, env::Environment, ::Type{I},
39-
x₀::Vector{Float64}, p::Vector{Float64}=Float64[]; args...)
38+
function Continuous(model::Model, env::Environment, ::Type{I},
39+
x₀::Vector{Float64}, p::Vector{Float64}=Float64[]; args...) where I<:Integrator
4040
cont = Continuous(env)
4141
t = now(env)
4242
integrator = I(model, now(env), x₀, p; args...)

src/resources/containers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mutable struct Container{N<:Number} <: AbstractResource
1616
end
1717
end
1818

19-
function Container{N<:Number}(env::Environment, capacity::N; level::N=zero(N))
19+
function Container(env::Environment, capacity::N; level::N=zero(N)) where N<:Number
2020
Container{N}(env, capacity, level)
2121
end
2222

0 commit comments

Comments
 (0)