Skip to content

Commit 4c2437a

Browse files
committed
Fix precompilation.jl for Runic and ExplicitImports
- Use explicit import `using PrecompileTools: @compile_workload` instead of implicit `using PrecompileTools` to pass ExplicitImports check - Add explicit `return` statements to satisfy Runic formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1d1b2b8 commit 4c2437a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/precompilation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
using PrecompileTools
1+
using PrecompileTools: @compile_workload
22
using OrdinaryDiffEqLowOrderRK: Euler
33

44
function _precompile_ode1(du, u, p, t)
5-
@. du = -0.1u
5+
return @. du = -0.1u
66
end
77

88
function _precompile_ode2(du, u, p, t)
99
du[1] = -0.01u[2]
10-
du[2] = -0.01u[1]
10+
return du[2] = -0.01u[1]
1111
end
1212

1313
@compile_workload begin

0 commit comments

Comments
 (0)