Skip to content

Commit

Permalink
change struct update deprecation to ex1.19+
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust authored and kybishop committed Feb 20, 2025
1 parent 1e87734 commit dea14a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/style/deprecations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule Quokka.Style.Deprecations do
end
end

if Version.match?(System.version(), ">= 1.18.0-dev") do
if Version.match?(System.version(), ">= 1.19.0-dev") do
# Struct update syntax was deprecated `%Foo{x | y} => %{x | y}`
defp style({:%, _, [_struct, {:%{}, _, [{:|, _, _}]} = update]}), do: update
end
Expand Down
4 changes: 2 additions & 2 deletions test/style/deprecations_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ defmodule Quokka.Style.DeprecationsTest do
end
end

describe "1.18+" do
@describetag skip: Version.match?(System.version(), "< 1.18.0-dev")
describe "1.19+" do
@describetag skip: Version.match?(System.version(), "< 1.19.0-dev")

test "struct update" do
assert_style "%Foo{widget | bar: :baz}", "%{widget | bar: :baz}"
Expand Down

0 comments on commit dea14a7

Please sign in to comment.