Fix some warnings

This commit is contained in:
Marcel Otto 2018-03-02 01:14:50 +01:00
parent bb0f8e12aa
commit 6832176904
4 changed files with 3 additions and 4 deletions

View file

@ -94,7 +94,6 @@ end
defimpl Inspect, for: RDF.Dataset do
import Inspect.Algebra
import RDF.InspectHelper
def inspect(%RDF.Dataset{name: name} = dataset, opts) do
doc =

View file

@ -3,7 +3,7 @@ defmodule RDF.NQuads.Encoder do
use RDF.Serialization.Encoder
def encode(data, opts \\ []) do
def encode(data, _opts \\ []) do
result =
data
|> Enum.reduce([], fn (statement, result) ->

View file

@ -7,7 +7,7 @@ defmodule RDF.NTriples.Encoder do
@xsd_string RDF.Datatype.NS.XSD.string
def encode(data, opts \\ []) do
def encode(data, _opts \\ []) do
result =
data
|> Enum.reduce([], fn (statement, result) ->

View file

@ -290,7 +290,7 @@ defmodule RDF.Turtle.Encoder do
end
end
defp term(%Literal{datatype: datatype} = literal, state, _, nesting),
defp term(%Literal{} = literal, state, _, nesting),
do: typed_literal_term(literal, state, nesting)
defp term(list, state, _, nesting) when is_list(list) do