Fix some warnings
This commit is contained in:
parent
bb0f8e12aa
commit
6832176904
4 changed files with 3 additions and 4 deletions
|
@ -94,7 +94,6 @@ end
|
||||||
|
|
||||||
defimpl Inspect, for: RDF.Dataset do
|
defimpl Inspect, for: RDF.Dataset do
|
||||||
import Inspect.Algebra
|
import Inspect.Algebra
|
||||||
import RDF.InspectHelper
|
|
||||||
|
|
||||||
def inspect(%RDF.Dataset{name: name} = dataset, opts) do
|
def inspect(%RDF.Dataset{name: name} = dataset, opts) do
|
||||||
doc =
|
doc =
|
||||||
|
|
|
@ -3,7 +3,7 @@ defmodule RDF.NQuads.Encoder do
|
||||||
|
|
||||||
use RDF.Serialization.Encoder
|
use RDF.Serialization.Encoder
|
||||||
|
|
||||||
def encode(data, opts \\ []) do
|
def encode(data, _opts \\ []) do
|
||||||
result =
|
result =
|
||||||
data
|
data
|
||||||
|> Enum.reduce([], fn (statement, result) ->
|
|> Enum.reduce([], fn (statement, result) ->
|
||||||
|
|
|
@ -7,7 +7,7 @@ defmodule RDF.NTriples.Encoder do
|
||||||
|
|
||||||
@xsd_string RDF.Datatype.NS.XSD.string
|
@xsd_string RDF.Datatype.NS.XSD.string
|
||||||
|
|
||||||
def encode(data, opts \\ []) do
|
def encode(data, _opts \\ []) do
|
||||||
result =
|
result =
|
||||||
data
|
data
|
||||||
|> Enum.reduce([], fn (statement, result) ->
|
|> Enum.reduce([], fn (statement, result) ->
|
||||||
|
|
|
@ -290,7 +290,7 @@ defmodule RDF.Turtle.Encoder do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp term(%Literal{datatype: datatype} = literal, state, _, nesting),
|
defp term(%Literal{} = literal, state, _, nesting),
|
||||||
do: typed_literal_term(literal, state, nesting)
|
do: typed_literal_term(literal, state, nesting)
|
||||||
|
|
||||||
defp term(list, state, _, nesting) when is_list(list) do
|
defp term(list, state, _, nesting) when is_list(list) do
|
||||||
|
|
Loading…
Reference in a new issue