mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +00:00
Fix const query with custom database trait
This commit is contained in:
parent
4609fd0043
commit
3f93415313
2 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ macro_rules! setup_tracked_fn {
|
|||
fn id_to_input<$db_lt>(db: &$db_lt Self::DbView, key: salsa::Id) -> Self::Input<$db_lt> {
|
||||
$zalsa::macro_if! {
|
||||
if $needs_interner {
|
||||
$Configuration::intern_ingredient(db).data(db, key).clone()
|
||||
$Configuration::intern_ingredient(db).data(db.as_dyn_database(), key).clone()
|
||||
} else {
|
||||
$zalsa::FromId::from_id(key)
|
||||
}
|
||||
|
|
|
@ -24,6 +24,6 @@ fn execute() {
|
|||
|
||||
#[test]
|
||||
fn execute_custom() {
|
||||
let mut db = common::LoggerDatabase::new();
|
||||
let mut db = common::LoggerDatabase::default();
|
||||
assert_eq!(tracked_custom_db(&db), 44);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue