From 325db9a2500676608b2c3773091892eb08ab351b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Lu=C3=ADs=20dos=20Santos=20Trindade?= Date: Wed, 24 Jan 2024 12:44:42 -0300 Subject: [PATCH] Remove warnings (#41) * Remove warning for both application and extra application * Remove warning for using negative step for String.slice --- lib/posexional/row.ex | 2 +- mix.exs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/posexional/row.ex b/lib/posexional/row.ex index 7c1410f..c322499 100644 --- a/lib/posexional/row.ex +++ b/lib/posexional/row.ex @@ -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) diff --git a/mix.exs b/mix.exs index cd5c68b..d128aa6 100644 --- a/mix.exs +++ b/mix.exs @@ -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 [ @@ -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