Skip to content

Commit

Permalink
Make Formulae dep optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Matiushkin committed Mar 1, 2024
1 parent 2f37145 commit 25d53d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/estructura/nested.ex
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ defmodule Estructura.Nested do
Macro.output() | {atom(), {:estructura, module()}}
defp slice(module, name, %{} = fields, values, impls) do
impl = Map.get(impls, module, %{funs: [], defs: []})
values = values || %{}

complex =
for {name, %{} = subslice} <- fields, into: %{} do
Expand Down

0 comments on commit 25d53d6

Please sign in to comment.