Skip to content

Commit

Permalink
Remove unnecessary use of u_str macro (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
sostock authored Aug 24, 2023
1 parent 08bea64 commit 305b28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkgdefaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ end

# conversion between degrees and radians
import Base: deg2rad, rad2deg
deg2rad(d::Quantity{T, NoDims, typeof(°)}) where {T} = deg2rad(ustrip(°, d))u"rad"
rad2deg(r::Quantity{T, NoDims, typeof(rad)}) where {T} = rad2deg(ustrip(rad, r))u"°"
deg2rad(d::Quantity{T, NoDims, typeof(°)}) where {T} = deg2rad(ustrip(°, d)) * rad
rad2deg(r::Quantity{T, NoDims, typeof(rad)}) where {T} = rad2deg(ustrip(rad, r)) * °

# SI and related units
" Unitful.Hz
Expand Down

0 comments on commit 305b28e

Please sign in to comment.