From 71a50a0f581367fd4ed42eeca133ab8e7a5a4c4e Mon Sep 17 00:00:00 2001 From: Neil Lyons Date: Wed, 30 Apr 2025 07:59:12 +0100 Subject: [PATCH] Fix struct update syntax deprecation warning elixir 1.19.0-dev --- lib/nimble_options.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nimble_options.ex b/lib/nimble_options.ex index 1653f0f..a41aee4 100644 --- a/lib/nimble_options.ex +++ b/lib/nimble_options.ex @@ -517,7 +517,7 @@ defmodule NimbleOptions do {:ok, options} else {:error, %ValidationError{} = error} -> - {:error, %ValidationError{error | keys_path: path ++ error.keys_path}} + {:error, %{error | keys_path: path ++ error.keys_path}} end end