From a8ce5653f74f8717d7033c4e32f9388e9ca6c8b9 Mon Sep 17 00:00:00 2001 From: Dustin Whitney Date: Wed, 16 Oct 2019 15:30:21 -0400 Subject: [PATCH] clean up warnings --- lib/src/repository.rs | 3 +-- lib/src/sparql/mod.rs | 8 ++++---- lib/src/store/mod.rs | 1 - 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/src/repository.rs b/lib/src/repository.rs index 11c35fa8..8f445194 100644 --- a/lib/src/repository.rs +++ b/lib/src/repository.rs @@ -1,7 +1,6 @@ use crate::model::*; -use crate::sparql::{GraphPattern, PreparedQuery, QueryOptions}; +use crate::sparql::{GraphPattern, PreparedQuery}; use crate::{DatasetSyntax, GraphSyntax, Result}; -use rio_api::iri::Iri; use std::io::BufRead; /// A `Repository` stores a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) diff --git a/lib/src/sparql/mod.rs b/lib/src/sparql/mod.rs index fa8eae91..520b4441 100644 --- a/lib/src/sparql/mod.rs +++ b/lib/src/sparql/mod.rs @@ -64,7 +64,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery { QueryVariants::Select { algebra, dataset: _, - base_iri, + .. } => { let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?; SimplePreparedQueryAction::Select { @@ -76,7 +76,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery { QueryVariants::Ask { algebra, dataset: _, - base_iri, + .. } => { let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?; SimplePreparedQueryAction::Ask { @@ -88,7 +88,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery { construct, algebra, dataset: _, - base_iri, + .. } => { let (plan, variables) = PlanBuilder::build(dataset.encoder(), &algebra)?; SimplePreparedQueryAction::Construct { @@ -104,7 +104,7 @@ impl<'a, S: StoreConnection + 'a> SimplePreparedQuery { QueryVariants::Describe { algebra, dataset: _, - base_iri, + .. } => { let (plan, _) = PlanBuilder::build(dataset.encoder(), &algebra)?; SimplePreparedQueryAction::Describe { diff --git a/lib/src/store/mod.rs b/lib/src/store/mod.rs index d27d04e8..f87531ee 100644 --- a/lib/src/store/mod.rs +++ b/lib/src/store/mod.rs @@ -14,7 +14,6 @@ use crate::model::*; use crate::sparql::{SimplePreparedQuery}; use crate::store::numeric_encoder::*; use crate::{DatasetSyntax, GraphSyntax, RepositoryConnection, Result}; -use rio_api::iri::Iri; use rio_api::parser::{QuadsParser, TriplesParser}; use rio_turtle::{NQuadsParser, NTriplesParser, TriGParser, TurtleParser}; use rio_xml::RdfXmlParser;