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/visualize/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/src/visualize') diff --git a/library/src/visualize/image.rs b/library/src/visualize/image.rs index 69eaa5bd..917f483e 100644 --- a/library/src/visualize/image.rs +++ b/library/src/visualize/image.rs @@ -165,7 +165,7 @@ pub enum ImageFit { /// Load an image from a path. #[comemo::memoize] fn load( - world: Tracked, + world: Tracked, full: &str, fallback_family: Option<&str>, alt: Option, -- cgit v1.2.3