mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 21:05:11 +00:00
store &mut DB
in QueryTableMut
This commit is contained in:
parent
0a94efeac3
commit
1715d44555
2 changed files with 1 additions and 2 deletions
|
@ -501,7 +501,7 @@ where
|
|||
DB: plumbing::GetQueryTable<Q>,
|
||||
Q: Query<DB> + 'me,
|
||||
{
|
||||
db: &'me DB,
|
||||
db: &'me mut DB,
|
||||
storage: Arc<Q::Storage>,
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,6 @@ where
|
|||
}
|
||||
|
||||
fn get_query_table_mut(db: &mut DB) -> QueryTableMut<'_, DB, Q> {
|
||||
let db = &*db;
|
||||
let group_storage: &Q::GroupStorage = HasQueryGroup::group_storage(db);
|
||||
let query_storage = Q::query_storage(group_storage).clone();
|
||||
QueryTableMut::new(db, query_storage)
|
||||
|
|
Loading…
Reference in a new issue