Skip to content

Commit

Permalink
Add generated to newlines_separator macro (#81)
Browse files Browse the repository at this point in the history
The newlines_separator macro causes dialyzer warnings in projects that
use NimbleCSV and have dialyzer enabled. This commit adds the generated
attribute to the macro to suppress the warnings.
  • Loading branch information
kzlsakal authored Mar 29, 2024
1 parent 3b2e2f7 commit 8cf912e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nimble_csv.ex
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ defmodule NimbleCSV do
end)
|> Kernel.++(quote do: (prefix -> prefix))

quote do
quote generated: true do
offset = byte_size(var!(line))
unquote(newlines_offsets)
case var!(line), do: unquote(newlines_clauses)
Expand Down

0 comments on commit 8cf912e

Please sign in to comment.