Skip to content

Commit

Permalink
Use Setfield instead of Accessors for older Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Mar 5, 2021
1 parent 10215cf commit d074bbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Takafumi Arakaki <aka.tkf@gmail.com>"]
version = "0.1.0"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"

[compat]
Expand Down
2 changes: 1 addition & 1 deletion docs/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[UnionArrays]]
deps = ["Transducers"]
deps = ["Setfield", "Transducers"]
path = ".."
uuid = "d6dd79e4-993b-11e9-1366-0de1c9fe1122"
version = "0.1.0"
2 changes: 1 addition & 1 deletion src/impl/impl.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Impl

using Base: Dims
using Accessors: @set
using Transducers
using Transducers: @return_if_reduced, next, complete
using Setfield: @set # using Setfield instead of Accessors for older Julia

using ..Abstract

Expand Down
8 changes: 1 addition & 7 deletions test/environments/main/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# This file is machine-generated - editing it directly is not advised

[[Accessors]]
deps = ["Compat", "CompositionsBase", "ConstructionBase", "Future", "MacroTools", "Requires", "Test"]
git-tree-sha1 = "6061581e28cf6fbbb6af983022c2589cbc801007"
uuid = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
version = "0.1.1"

[[ArgCheck]]
git-tree-sha1 = "dedbbb2ddb876f899585c4ec4433265e3017215a"
uuid = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down Expand Up @@ -201,7 +195,7 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[UnionArrays]]
deps = ["Accessors", "Transducers"]
deps = ["Setfield", "Transducers"]
path = "../../.."
uuid = "d6dd79e4-993b-11e9-1366-0de1c9fe1122"
version = "0.1.0"
Expand Down

0 comments on commit d074bbb

Please sign in to comment.