From 933c15a67130ce94d67c7ba0e377db9d13ebded1 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sat, 3 Oct 2015 21:45:47 +0200 Subject: [PATCH] Some tidying up --- lib/isn.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/isn.ex b/lib/isn.ex index 007453e..a83f6d9 100644 --- a/lib/isn.ex +++ b/lib/isn.ex @@ -42,7 +42,7 @@ defmodule Isn do def init(parameters, _opts), do: parameters - def matching(_library), + def matching(_), do: Enum.zip(Stream.cycle([:type]), @isn) def format(_), @@ -81,8 +81,6 @@ for module <- ~w(ISBN ISMN ISSN ISBN13 ISMN13 ISSN13 UPC EAN13) do def type, do: unquote(ecto_type) - defdelegate blank?, to: Ecto.Type - def cast(nil), do: :error def cast(isn), do: {:ok, to_string(isn)}