Skip to content

Commit

Permalink
small nits from JET report (JuliaArrays#1154)
Browse files Browse the repository at this point in the history
* nits from jet

* revert change to `diff`
  • Loading branch information
thchr authored Apr 21, 2023
1 parent 1b5a994 commit 2f50491
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ Base.LinearIndices(::Size{S}) where {S} = LinearIndices(S)
@pure Base.:(==)(::Length{L}, l::Int) where {L} = L == l
@pure Base.:(==)(l::Int, ::Length{L}) where {L} = l == L

# unroll_tuple also works with `Length`
@propagate_inbounds unroll_tuple(f, ::Length{L}) where {L} = unroll_tuple(f, Val{L})

"""
sizematch(::Size, ::Size)
sizematch(::Tuple, ::Tuple)
Expand Down

0 comments on commit 2f50491

Please sign in to comment.