mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
writes with jars_mut
This commit is contained in:
parent
6776919f39
commit
0e0626abfa
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ use crate::jar::Jar;
|
|||
use crate::key::DependencyIndex;
|
||||
use crate::runtime::local_state::QueryOrigin;
|
||||
use crate::runtime::Runtime;
|
||||
use crate::{Database, DatabaseKeyIndex, Id, IngredientIndex, Durability};
|
||||
use crate::{Database, DatabaseKeyIndex, Durability, Id, IngredientIndex};
|
||||
|
||||
use super::routes::Routes;
|
||||
use super::{ParallelDatabase, Revision};
|
||||
|
@ -94,7 +94,7 @@ where
|
|||
}
|
||||
|
||||
pub fn runtime_mut(&mut self) -> &mut Runtime {
|
||||
&mut self.runtime
|
||||
self.jars_mut().1
|
||||
}
|
||||
|
||||
// ANCHOR: jars_mut
|
||||
|
|
|
@ -6,9 +6,9 @@ use std::sync::{
|
|||
Arc,
|
||||
};
|
||||
|
||||
use salsa::storage::HasJarsDyn;
|
||||
use salsa_2022_tests::{HasLogger, Logger};
|
||||
use test_log::test;
|
||||
use salsa::storage::HasJarsDyn;
|
||||
|
||||
#[salsa::jar(db = Db)]
|
||||
struct Jar(MyInput, get_hot_potato, get_hot_potato2, get_volatile);
|
||||
|
|
Loading…
Reference in a new issue