Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit 8c39812

Browse files
authored
Fix macro hygeine (#9)
1 parent 60308b4 commit 8c39812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BenchmarkHistograms.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function Base.show(io::IO, ::MIME"text/plain", bp::BenchmarkHistogram; nbins=NBI
6060
end
6161

6262
macro benchmark(exprs...)
63-
return quote
64-
BenchmarkHistogram(BenchmarkTools.@benchmark($(exprs...)))
65-
end
63+
quote
64+
$BenchmarkHistogram($BenchmarkTools.@benchmark($(exprs...)))
65+
end |> esc
6666
end
6767

6868
# We vendor some pretty-printing methods from BenchmarkTools

0 commit comments

Comments
 (0)