Skip to content

Commit 81ad5d9

Browse files
authored
Merge pull request #174 from thomvet/thomvet-patch-1
Depend on StaticArraysCore.jl; remove Requires.jl dependency
2 parents c86ca0b + 2cfd07d commit 81ad5d9

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.0'
14-
- '1.3'
13+
- '1.6'
1514
- '1'
1615
- 'nightly'
1716
os:

Project.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
name = "Setfield"
22
uuid = "efcf1570-3423-57d1-acb7-fd33fddbac46"
3-
version = "1.0.0"
3+
version = "1.1.0"
44

55
[deps]
66
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
77
Future = "9fa8497b-333b-5362-9e8d-4d0656e87820"
88
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
9-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
9+
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
1010

1111
[compat]
1212
ConstructionBase = "0.1, 1.0"
1313
MacroTools = "0.4.4, 0.5"
14-
Requires = "0.5, 1.0"
15-
julia = "1"
14+
julia = "1.6"
1615

1716
[extras]
1817
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"

src/Setfield.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ __precompile__(true)
22
module Setfield
33
using MacroTools
44
using MacroTools: isstructdef, splitstructdef, postwalk
5-
using Requires: @require
5+
using StaticArraysCore
66

77
if VERSION < v"1.1-"
88
using Future: copy!
@@ -26,12 +26,4 @@ for n in names(Setfield, all=true)
2626
@eval Base.show(io::IO, l::$T) = _show(io, nothing, l)
2727
end
2828
end
29-
30-
function __init__()
31-
@require StaticArrays="90137ffa-7385-5640-81b9-e52037218182" begin
32-
setindex(a::StaticArrays.StaticArray, args...) =
33-
Base.setindex(a, args...)
34-
end
35-
end
36-
3729
end

src/setindex.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ Base.@propagate_inbounds function setindex(d0::AbstractDict, v, k)
2020
d[k] = v
2121
return d
2222
end
23+
24+
setindex(a::StaticArraysCore.StaticArray, args...) =
25+
Base.setindex(a, args...)

0 commit comments

Comments
 (0)