Skip to content

Commit

Permalink
No need to redefine identity
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Nov 21, 2023
1 parent 4667128 commit 745cd9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ end
############################## Same dimension as input ##################################
for f in (
:float, :abs, :real, :imag, :conj, :adjoint, :unsigned,
:nextfloat, :prevfloat, :identity, :transpose, :significand
:nextfloat, :prevfloat, :transpose, :significand
)
@eval function Base.$f(q::UnionAbstractQuantity)
return new_quantity(typeof(q), $f(ustrip(q)), dimension(q))
Expand Down

0 comments on commit 745cd9e

Please sign in to comment.