From 47dff3765de863554ca296448555599fc50d4a8a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 11 May 2023 10:50:30 +0200 Subject: Remove 'static bound on `World` Thanks to improvements in comemo, tracked types don't need to be 'static anymore. This means that the 'static bound on the `World` is now lifted and that the `Route` doesn't need to use unsafe code anymore to manage its lifetime. --- src/eval/func.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eval/func.rs') diff --git a/src/eval/func.rs b/src/eval/func.rs index 51eba564..060e72cf 100644 --- a/src/eval/func.rs +++ b/src/eval/func.rs @@ -4,7 +4,7 @@ use std::fmt::{self, Debug, Formatter}; use std::hash::{Hash, Hasher}; use std::sync::Arc; -use comemo::{Prehashed, Track, Tracked, TrackedMut}; +use comemo::{Prehashed, Tracked, TrackedMut}; use ecow::eco_format; use once_cell::sync::Lazy; @@ -317,7 +317,7 @@ impl Closure { #[allow(clippy::too_many_arguments)] fn call( this: &Func, - world: Tracked, + world: Tracked, route: Tracked, tracer: TrackedMut, provider: TrackedMut, -- cgit v1.2.3