summaryrefslogtreecommitdiff
path: root/src/eval/library.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-11 10:50:30 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-11 10:50:30 +0200
commit47dff3765de863554ca296448555599fc50d4a8a (patch)
treef632073bd800466d94dae7d19b1d4e28e80ff743 /src/eval/library.rs
parentd9ba84085e36036409c919cff2e3eb3d126e3bb3 (diff)
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.
Diffstat (limited to 'src/eval/library.rs')
-rw-r--r--src/eval/library.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/library.rs b/src/eval/library.rs
index 25f715f8..0067bf57 100644
--- a/src/eval/library.rs
+++ b/src/eval/library.rs
@@ -67,7 +67,7 @@ pub struct LangItems {
/// The keys contained in the bibliography and short descriptions of them.
#[allow(clippy::type_complexity)]
pub bibliography_keys: fn(
- world: Tracked<dyn World>,
+ world: Tracked<dyn World + '_>,
introspector: Tracked<Introspector>,
) -> Vec<(EcoString, Option<EcoString>)>,
/// A section heading: `= Introduction`.