clean up warnings

pull/11/head
Dustin Whitney 5 years ago
parent 0e12edfdc9
commit a8ce5653f7
  1. 3
      lib/src/repository.rs
  2. 8
      lib/src/sparql/mod.rs
  3. 1
      lib/src/store/mod.rs

@ -1,7 +1,6 @@
use crate::model::*; use crate::model::*;
use crate::sparql::{GraphPattern, PreparedQuery, QueryOptions}; use crate::sparql::{GraphPattern, PreparedQuery};
use crate::{DatasetSyntax, GraphSyntax, Result}; use crate::{DatasetSyntax, GraphSyntax, Result};
use rio_api::iri::Iri;
use std::io::BufRead; use std::io::BufRead;
/// A `Repository` stores a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) /// A `Repository` stores a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset)

@ -64,7 +64,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery<S> {
QueryVariants::Select { QueryVariants::Select {
algebra, algebra,
dataset: _, dataset: _,
base_iri, ..
} => { } => {
let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?; let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?;
SimplePreparedQueryAction::Select { SimplePreparedQueryAction::Select {
@ -76,7 +76,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery<S> {
QueryVariants::Ask { QueryVariants::Ask {
algebra, algebra,
dataset: _, dataset: _,
base_iri, ..
} => { } => {
let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?; let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?;
SimplePreparedQueryAction::Ask { SimplePreparedQueryAction::Ask {
@ -88,7 +88,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery<S> {
construct, construct,
algebra, algebra,
dataset: _, dataset: _,
base_iri, ..
} => { } => {
let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?; let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?;
SimplePreparedQueryAction::Construct { SimplePreparedQueryAction::Construct {
@ -104,7 +104,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery<S> {
QueryVariants::Describe { QueryVariants::Describe {
algebra, algebra,
dataset: _, dataset: _,
base_iri, ..
} => { } => {
let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?; let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?;
SimplePreparedQueryAction::Describe { SimplePreparedQueryAction::Describe {

@ -14,7 +14,6 @@ use crate::model::*;
use crate::sparql::{SimplePreparedQuery}; use crate::sparql::{SimplePreparedQuery};
use crate::store::numeric_encoder::*; use crate::store::numeric_encoder::*;
use crate::{DatasetSyntax, GraphSyntax, RepositoryConnection, Result}; use crate::{DatasetSyntax, GraphSyntax, RepositoryConnection, Result};
use rio_api::iri::Iri;
use rio_api::parser::{QuadsParser, TriplesParser}; use rio_api::parser::{QuadsParser, TriplesParser};
use rio_turtle::{NQuadsParser, NTriplesParser, TriGParser, TurtleParser}; use rio_turtle::{NQuadsParser, NTriplesParser, TriGParser, TurtleParser};
use rio_xml::RdfXmlParser; use rio_xml::RdfXmlParser;

Loading…
Cancel
Save