Skip to content

Commit 1f220e8

Browse files
authored
Remove occurrences of the struct update syntax deprecated in Elixir 1.19 (#216)
1 parent d749dcf commit 1f220e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/stream_data.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ defmodule StreamData do
693693
@spec unshrinkable(t(a)) :: t(a) when a: term()
694694
def unshrinkable(data) do
695695
new(fn seed, size ->
696-
%LazyTree{call(data, seed, size) | children: []}
696+
%{call(data, seed, size) | children: []}
697697
end)
698698
end
699699

lib/stream_data/lazy_tree.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ defmodule StreamData.LazyTree do
140140
end
141141
end)
142142

143-
%__MODULE__{tree | children: children}
143+
%{tree | children: children}
144144
end
145145

146146
@doc """

0 commit comments

Comments
 (0)