Skip to content

Commit

Permalink
Remove warnings (#41)
Browse files Browse the repository at this point in the history
* Remove warning for both application and extra application

* Remove warning for using negative step for String.slice
  • Loading branch information
VitorTrin authored Jan 24, 2024
1 parent c655c19 commit 325db9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/posexional/row.ex
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defmodule Posexional.Row do
field_content = String.slice(content, 0, FieldSize.size(field))

{list ++ [{FieldName.name(field), FieldRead.read(field, field_content)}],
String.slice(content, (FieldSize.size(field) + String.length(separator))..-1)}
String.slice(content, (FieldSize.size(field) + String.length(separator))..-1//1)}
end)
|> elem(0)
|> Enum.filter(fn {k, _} -> k not in [:empty_field] end)
Expand Down
6 changes: 4 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Posexional.Mixfile do
use Mix.Project

@source_url "https://github.com/primait/posexional"
@version "1.1.0-rc.0"
@version "1.1.1"

def project do
[
Expand All @@ -29,7 +29,9 @@ defmodule Posexional.Mixfile do
defp elixirc_paths(_), do: ["lib"]

def application do
[applications: [:logger], extra_applications: [:timex]]
[
extra_applications: [:logger, :timex]
]
end

defp package do
Expand Down

0 comments on commit 325db9a

Please sign in to comment.