From 019add50de0cf32446e203e4e565ceea9a94172f Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sat, 15 Jun 2024 14:24:45 -0400 Subject: [PATCH] improvement: improve marshalling of spitfire env to macro env --- lib/code/common.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/code/common.ex b/lib/code/common.ex index 4e00169..a85353b 100644 --- a/lib/code/common.ex +++ b/lib/code/common.ex @@ -543,8 +543,7 @@ defmodule Igniter.Code.Common do |> Spitfire.Env.expand("file.ex") |> elem(3) |> then(fn value -> - # makes dialyzer happy? - {:ok, Map.take(value, Map.keys(%Macro.Env{}))} + {:ok, struct(Macro.Env, value)} end) rescue _e ->