diff --git a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl index 505117be5f..572ed929e2 100644 --- a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl +++ b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl @@ -17,12 +17,16 @@ struct BlockZero{Axes} axes::Axes end -function (f::BlockZero)(arraytype::Type{<:AbstractArray{T,N}}, I::CartesianIndex{N}) where {T,N} +function (f::BlockZero)( + arraytype::Type{<:AbstractArray{T,N}}, I::CartesianIndex{N} +) where {T,N} return fill!(arraytype(undef, block_size(f.axes, Block(Tuple(I)))), false) end # Fallback to Array if it is abstract -function (f::BlockZero)(arraytype::Type{AbstractArray{T,N}}, I::CartesianIndex{N}) where {T,N} +function (f::BlockZero)( + arraytype::Type{AbstractArray{T,N}}, I::CartesianIndex{N} +) where {T,N} return fill!(Array{T,N}(undef, block_size(f.axes, Block(Tuple(I)))), false) end diff --git a/NDTensors/src/SmallVectors/src/BaseExt/sort.jl b/NDTensors/src/SmallVectors/src/BaseExt/sort.jl index b128fe4478..e1b13fd795 100644 --- a/NDTensors/src/SmallVectors/src/BaseExt/sort.jl +++ b/NDTensors/src/SmallVectors/src/BaseExt/sort.jl @@ -15,7 +15,9 @@ function sort!( if VERSION < v"1.8.4" Base.sort!(v, alg, order) else - Base.Sort._sort!(v, Base.Sort.maybe_apply_initial_optimizations(alg), order, (; scratch)) + Base.Sort._sort!( + v, Base.Sort.maybe_apply_initial_optimizations(alg), order, (; scratch) + ) end return v end