Skip to content

Commit

Permalink
fix: remove @impl from for 1.7.0 and beyond (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkipMike authored and hpopp committed Aug 3, 2018
1 parent 2d46ebd commit af35b3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/accessible.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ defmodule Accessible do
@impl Access
def fetch(struct, key), do: Map.fetch(struct, key)

@impl Access
if Version.compare(System.version(), "1.7.0") == :lt do
@impl Access
end
def get(struct, key, default \\ nil) do
case struct do
%{^key => value} -> value
Expand Down

0 comments on commit af35b3c

Please sign in to comment.