Skip to content

Commit ca17f15

Browse files
authored
move Requires import to within the extension check
1 parent 524ace8 commit ca17f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticArrayInterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ include("indexing.jl")
486486
include("stridelayout.jl")
487487
include("broadcast.jl")
488488

489-
import Requires
490489
@static if !isdefined(Base, :get_extension)
490+
import Requires
491491
function __init__()
492492
Requires.@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" begin include("../ext/StaticArrayInterfaceStaticArraysExt.jl") end
493493
Requires.@require OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881" begin include("../ext/StaticArrayInterfaceOffsetArraysExt.jl") end

0 commit comments

Comments
 (0)