Created
September 5, 2022 02:54
-
-
Save rugyoga/7d677708be18a8ce637b73e7a693990b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@spec audit_fun(struct(), Macro.Env.t()) :: struct() | |
def audit_fun(r, e) do | |
r |> struct([{@key, payload(r, e)}]) | |
end | |
@spec payload(struct(), Macro.Env) :: trail_t() | |
def payload(r, e), do: {r, e.file, e.line} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment