Skip to content

Commit 04340b1

Browse files
committed
minor changes and formatting
1 parent 4963139 commit 04340b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/utils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ will need a `@reactant_overlay` method.
156156
See also: [`@skip_rewrite_type`](@ref)
157157
"""
158158
macro skip_rewrite_func(fname)
159-
quote
159+
return quote
160160
@lock $(Reactant.__skip_rewrite_func_set_lock) push!(
161161
$(Reactant.__skip_rewrite_func_set), typeof($(esc(fname)))
162162
)
@@ -288,7 +288,7 @@ struct MustThrowError end
288288
for i in 1:N
289289
@inbounds newargs[i] = :(args[$i]...)
290290
end
291-
quote
291+
return quote
292292
Base.@_inline_meta
293293
call_with_reactant(applyfn, $(newargs...))
294294
end
@@ -302,7 +302,7 @@ end
302302
for i in 1:N
303303
@inbounds newargs[i] = :(args[$i]...)
304304
end
305-
quote
305+
return quote
306306
Base.@_inline_meta
307307
call_with_reactant(mt, applyfn, $(newargs...))
308308
end
@@ -827,6 +827,7 @@ function call_epilogue(
827827
for (i_arg, arg) in enumerate(linear_args)
828828
if arg === res && !(i_arg in mutated_args)
829829
no_replacement = true
830+
break
830831
end
831832
end
832833
# if the function didn't mutate the value, we don't put

0 commit comments

Comments
 (0)