Skip to content

Commit 83388d8

Browse files
author
Pietro Vertechi
authored
Merge pull request JuliaArrays#88 from SimonDanisch/sd-norequires
remove requires
2 parents d22a69e + bdfb3f8 commit 83388d8

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

Project.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ version = "0.4.0"
44

55
[deps]
66
PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720"
7-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
7+
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
8+
WeakRefStrings = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
89

910
[compat]
10-
julia = "1"
1111
PooledArrays = ">=0.5"
12+
julia = "1"
1213

1314
[extras]
14-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1515
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
1616
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
17+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1718
WeakRefStrings = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
1819

1920
[targets]

src/StructArrays.jl

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module StructArrays
22

33
using Base: tuple_type_cons, tuple_type_head, tuple_type_tail, tail
4-
5-
import Requires
64
using PooledArrays: PooledArray
75

86
export StructArray, StructVector, LazyRow, LazyRows
@@ -16,15 +14,11 @@ include("collect.jl")
1614
include("sort.jl")
1715
include("groupjoin.jl")
1816
include("lazy.jl")
19-
20-
function __init__()
21-
Requires.@require Tables="bd369af6-aec1-5ad0-b16a-f7cc5008161c" include("tables.jl")
22-
Requires.@require WeakRefStrings="ea10d353-3f73-51f8-a26c-33c1cb351aa5" begin
23-
function refs(a::WeakRefStrings.StringArray{T}) where {T}
24-
S = Union{WeakRefStrings.WeakRefString{UInt8}, typeintersect(T, Missing)}
25-
convert(WeakRefStrings.StringArray{S}, a)
26-
end
27-
end
17+
using Tables, WeakRefStrings
18+
include("tables.jl")
19+
function refs(a::WeakRefStrings.StringArray{T}) where {T}
20+
S = Union{WeakRefStrings.WeakRefString{UInt8}, typeintersect(T, Missing)}
21+
convert(WeakRefStrings.StringArray{S}, a)
2822
end
2923

3024
end # module

0 commit comments

Comments
 (0)