store &mut DB in QueryTableMut

This commit is contained in:
Niko Matsakis 2019-09-27 05:53:16 -04:00
parent 0a94efeac3
commit 1715d44555
2 changed files with 1 additions and 2 deletions

View file

@ -501,7 +501,7 @@ where
DB: plumbing::GetQueryTable<Q>,
Q: Query<DB> + 'me,
{
db: &'me DB,
db: &'me mut DB,
storage: Arc<Q::Storage>,
}

View file

@ -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)