Skip to content

Commit 2ca5404

Browse files
committed
Hashing without symbol?
1 parent 880daf4 commit 2ca5404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lens.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ end
119119
function ==(l1::ComposedLens{LO, LI}, l2::ComposedLens{LO, LI}) where {LO, LI}
120120
return l1.outer == l2.outer && l1.inner == l2.inner
121121
end
122-
hash(l::ComposedLens, h::UInt) = hash(l.outer, hash(l.inner, hash(:ComposedLens, h)))
122+
hash(l::ComposedLens, h::UInt) = hash(l.outer, hash(l.inner, h))
123123

124124
"""
125125
compose([lens₁, [lens₂, [lens₃, ...]]])
@@ -180,7 +180,7 @@ struct IndexLens{I <: Tuple} <: Lens
180180
indices::I
181181
end
182182
==(l1::IndexLens{I}, l2::IndexLens{I}) where {I} = l1.indices == l2.indices
183-
hash(l::IndexLens, h::UInt) = hash(l.indices, hash(:IndexLens, h))
183+
hash(l::IndexLens, h::UInt) = hash(l.indices, h)
184184

185185
Base.@propagate_inbounds function get(obj, l::IndexLens)
186186
getindex(obj, l.indices...)

0 commit comments

Comments
 (0)