Skip to content

Commit cab1a6c

Browse files
committed
cleanup
1 parent a436336 commit cab1a6c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/StructHelpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function defs_has_batteries(T, options)
258258
true
259259
end),
260260
:(
261-
function $(SH).batteries_options(::Type{<:$T})::typeof($options)
261+
function $(SH).batteries_options(::Type{<:$T})::$(typeof(options))
262262
return $options
263263
end
264264
)

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ struct SNoIsEqual; a; end
109109
@test SH.batteries_options(Salt1b).typesalt == 1
110110
@test SH.batteries_options(Salt2).typesalt == 2
111111
@test SH.batteries_options(NoSalt).typesalt === nothing
112-
@show SH.batteries_options(Salt1)
113112
@test hash(Salt1()) === hash(Salt1b())
114113
@test hash(Salt1()) != hash(NoSalt())
115114
@test hash(Salt1()) != hash(Salt2())

0 commit comments

Comments
 (0)