elide some lifetimes

This commit is contained in:
Aleksey Kladov 2018-10-10 00:44:26 +03:00
parent 2714730c9d
commit 74486afdec
3 changed files with 9 additions and 9 deletions

View file

@ -323,9 +323,9 @@ where
DB: Database,
MP: MemoizationPolicy<DB, Q>,
{
fn try_fetch<'q>(
fn try_fetch(
&self,
db: &'q DB,
db: &DB,
key: &Q::Key,
descriptor: &DB::QueryDescriptor,
) -> Result<Q::Value, CycleDetected> {
@ -336,9 +336,9 @@ where
Ok(value)
}
fn maybe_changed_since<'q>(
fn maybe_changed_since(
&self,
db: &'q DB,
db: &DB,
revision: Revision,
key: &Q::Key,
descriptor: &DB::QueryDescriptor,

View file

@ -78,9 +78,9 @@ where
DB: Database,
Q::Value: Default,
{
fn try_fetch<'q>(
fn try_fetch(
&self,
db: &'q DB,
db: &DB,
key: &Q::Key,
descriptor: &DB::QueryDescriptor,
) -> Result<Q::Value, CycleDetected> {
@ -91,9 +91,9 @@ where
Ok(value)
}
fn maybe_changed_since<'q>(
fn maybe_changed_since(
&self,
_db: &'q DB,
_db: &DB,
revision: Revision,
key: &Q::Key,
_descriptor: &DB::QueryDescriptor,

View file

@ -156,7 +156,7 @@ where
pub struct CycleDetected;
impl<'me, DB, Q> QueryTable<'me, DB, Q>
impl<DB, Q> QueryTable<'_, DB, Q>
where
DB: Database,
Q: Query<DB>,