From 99405230592fc96fb517ec900477848a220ab736 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 27 Jan 2023 08:31:13 -0500 Subject: [PATCH] Remove unnecessary val-type in `copyat_or_push!` --- src/utils.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index fa408e38..907d04e2 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -148,8 +148,8 @@ copyat_or_push!{T}(a::AbstractVector{T},i::Int,x) If `i= i if !ArrayInterfaceCore.ismutable(T) || !perform_copy # TODO: Check for `setindex!`` if T <: StaticArraysCore.StaticArray and use `copy!(b[i],a[i])` @@ -171,7 +171,11 @@ function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy end nothing end - + +function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy}}) where {T, perform_copy} + copyat_or_push!(a,i,x,perform_copy) +end + """ ```julia recursive_one(a)