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. --- library/src/text/shaping.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/src/text') diff --git a/library/src/text/shaping.rs b/library/src/text/shaping.rs index 7d5703bc..e670d0d1 100644 --- a/library/src/text/shaping.rs +++ b/library/src/text/shaping.rs @@ -448,8 +448,8 @@ impl Debug for ShapedText<'_> { } /// Holds shaping results and metadata common to all shaped segments. -struct ShapingContext<'a> { - vt: &'a Vt<'a>, +struct ShapingContext<'a, 'v> { + vt: &'a Vt<'v>, spans: &'a SpanMapper, glyphs: Vec, used: Vec, -- cgit v1.2.3