Skip to content

Commit 57d69a3

Browse files
chore: apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9f04163 commit 57d69a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/TracedRArray.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ end
4242

4343
Base.getindex(a::AnyTracedRScalar{T}) where {T} = a
4444

45-
Base.zero(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T, 0}, zero(T))
46-
Base.one(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T, 0}, one(T))
45+
Base.zero(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T,0}, zero(T))
46+
Base.one(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T,0}, one(T))
4747

4848
function Base.convert(::Type{<:AnyTracedRScalar{T}}, x::Number) where {T}
49-
return promote_to(TracedRArray{T, 0}, T(x))
49+
return promote_to(TracedRArray{T,0}, T(x))
5050
end
5151

5252
function Base.getindex(a::TracedRArray{T,N}, index::Vararg{Int,N}) where {T,N}
@@ -522,8 +522,7 @@ for (jlop, hloop, hlocomp, merge) in (
522522
)
523523
@eval begin
524524
function $(jlop)(
525-
@nospecialize(lhs::TracedRArray{T,0}),
526-
@nospecialize(rhs::TracedRArray{T,0})
525+
@nospecialize(lhs::TracedRArray{T,0}), @nospecialize(rhs::TracedRArray{T,0})
527526
) where {T}
528527
return TracedRArray{Bool,0}(
529528
(),

0 commit comments

Comments
 (0)