Skip to content

Commit 74df4a8

Browse files
committed
Replace collect with (Vector|Matrix|Array) in stdlib/.
1 parent 29e8917 commit 74df4a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/Dates/src/arithmetic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ end
9595
(-)(y::T, x::AbstractArray{T}) where {T<:TimeType} = y .- x
9696

9797
# AbstractArray{TimeType}, AbstractArray{TimeType}
98-
(-)(x::OrdinalRange{T}, y::OrdinalRange{T}) where {T<:TimeType} = collect(x) - collect(y)
99-
(-)(x::AbstractRange{T}, y::AbstractRange{T}) where {T<:TimeType} = collect(x) - collect(y)
98+
(-)(x::OrdinalRange{T}, y::OrdinalRange{T}) where {T<:TimeType} = Vector(x) - Vector(y)
99+
(-)(x::AbstractRange{T}, y::AbstractRange{T}) where {T<:TimeType} = Vector(x) - Vector(y)

stdlib/Distributed/test/topology.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function launch(manager::TopoTestManager, params::Dict, launched::Array, c::Cond
5151
wconfig.process = io
5252
wconfig.io = io.out
5353
wconfig.ident = i
54-
wconfig.connect_idents = collect(i+2:2:manager.np)
54+
wconfig.connect_idents = Vector(i+2:2:manager.np)
5555
push!(launched, wconfig)
5656
end
5757

0 commit comments

Comments
 (0)