writes with jars_mut

This commit is contained in:
XFFXFF 2022-08-24 20:17:13 +08:00
parent 6776919f39
commit 0e0626abfa
2 changed files with 3 additions and 3 deletions

View file

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

View file

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