summaryrefslogtreecommitdiff
path: root/src/model/realize.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-11 11:27:00 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-11 11:27:00 +0200
commit2f0b5eeae09bd880e4552bb83e44d9cd32571c58 (patch)
tree6989d423e6bb614b3224be53140e4d649033aeac /src/model/realize.rs
parent47dff3765de863554ca296448555599fc50d4a8a (diff)
More efficient introspection
Switches from a mutable locator to one based on tracked chains and optimizes query performance.
Diffstat (limited to 'src/model/realize.rs')
-rw-r--r--src/model/realize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/realize.rs b/src/model/realize.rs
index ee9049ad..01c46b81 100644
--- a/src/model/realize.rs
+++ b/src/model/realize.rs
@@ -37,7 +37,7 @@ pub fn realize(
if target.needs_preparation() {
let mut elem = target.clone();
if target.can::<dyn Locatable>() || target.label().is_some() {
- let location = vt.provider.locate(hash128(target));
+ let location = vt.locator.locate(hash128(target));
elem.set_location(location);
}