Simplifies some lifetimes

pull/12/head
Tpt 5 years ago
parent 39a307aa7a
commit 0d8ccdae3e
  1. 12
      lib/src/repository.rs

@ -81,16 +81,12 @@ pub trait RepositoryConnection: Clone {
/// assert_eq!(results.into_values_iter().next().unwrap().unwrap()[0], Some(ex.into())); /// assert_eq!(results.into_values_iter().next().unwrap().unwrap()[0], Some(ex.into()));
/// } /// }
/// ``` /// ```
fn prepare_query<'a>( fn prepare_query(&self, query: &str, options: QueryOptions) -> Result<Self::PreparedQuery>;
&'a self,
query: &str,
options: QueryOptions,
) -> Result<Self::PreparedQuery>;
/// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests. /// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests.
fn prepare_query_from_pattern<'a>( fn prepare_query_from_pattern(
&'a self, &self,
graph_pattern: &'a GraphPattern, graph_pattern: &GraphPattern,
options: QueryOptions, options: QueryOptions,
) -> Result<Self::PreparedQuery>; ) -> Result<Self::PreparedQuery>;

Loading…
Cancel
Save