Simplifies some lifetimes
@@ -81,16 +81,12 @@ pub trait RepositoryConnection: Clone {
/// assert_eq!(results.into_values_iter().next().unwrap().unwrap()[0], Some(ex.into()));
/// }
/// ```
- fn prepare_query<'a>(
- &'a self,
- query: &str,
- options: QueryOptions,
- ) -> Result<Self::PreparedQuery>;
+ fn prepare_query(&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.
- fn prepare_query_from_pattern<'a>(
- &'a self,
- graph_pattern: &'a GraphPattern,
+ fn prepare_query_from_pattern(
+ &self,
+ graph_pattern: &GraphPattern,
options: QueryOptions,
) -> Result<Self::PreparedQuery>;
