mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 11:00:05 +00:00
Switch crate to pub(crate)
This commit is contained in:
parent
3b5f16cbcb
commit
1c349d4229
12 changed files with 25 additions and 30 deletions
|
@ -4,20 +4,20 @@ use crate::memoized_dep_inputs;
|
|||
use crate::memoized_inputs;
|
||||
use crate::memoized_volatile;
|
||||
|
||||
crate trait TestContext: salsa::Database {
|
||||
pub(crate) trait TestContext: salsa::Database {
|
||||
fn clock(&self) -> &Counter;
|
||||
fn log(&self) -> &Log;
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
crate struct TestContextImpl {
|
||||
pub(crate) struct TestContextImpl {
|
||||
runtime: salsa::Runtime<TestContextImpl>,
|
||||
clock: Counter,
|
||||
log: Log,
|
||||
}
|
||||
|
||||
impl TestContextImpl {
|
||||
crate fn assert_log(&self, expected_log: &[&str]) {
|
||||
pub(crate) fn assert_log(&self, expected_log: &[&str]) {
|
||||
use difference::{Changeset, Difference};
|
||||
|
||||
let expected_text = &format!("{:#?}", expected_log);
|
||||
|
@ -42,7 +42,7 @@ impl TestContextImpl {
|
|||
}
|
||||
|
||||
salsa::database_storage! {
|
||||
crate struct TestContextImplStorage for TestContextImpl {
|
||||
pub(crate) struct TestContextImplStorage for TestContextImpl {
|
||||
impl memoized_dep_inputs::MemoizedDepInputsContext {
|
||||
fn dep_memoized2() for memoized_dep_inputs::Memoized2;
|
||||
fn dep_memoized1() for memoized_dep_inputs::Memoized1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue