diff --git a/lib/src/repository.rs b/lib/src/repository.rs index c8628702..637da767 100644 --- a/lib/src/repository.rs +++ b/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())); /// } /// ``` - fn prepare_query<'a>( - &'a self, - query: &str, - options: QueryOptions, - ) -> Result; + fn prepare_query(&self, query: &str, options: QueryOptions) -> Result; /// 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;