mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-05 03:18:19 +00:00
introduce group storage structs to use from database_storage
macro
This also detected a bunch of crate visibility mismatches in the tests.
This commit is contained in:
parent
3e81f12dd2
commit
238be96432
7 changed files with 95 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
|||
#[derive(Default)]
|
||||
pub struct DatabaseImpl {
|
||||
struct DatabaseImpl {
|
||||
runtime: salsa::Runtime<DatabaseImpl>,
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ impl salsa::Database for DatabaseImpl {
|
|||
}
|
||||
|
||||
salsa::database_storage! {
|
||||
pub struct DatabaseImplStorage for DatabaseImpl {
|
||||
struct DatabaseImplStorage for DatabaseImpl {
|
||||
impl Database {
|
||||
fn memoized_a() for MemoizedAQuery;
|
||||
fn memoized_b() for MemoizedBQuery;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue