mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
elide some lifetimes
This commit is contained in:
parent
2714730c9d
commit
74486afdec
3 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue