From 5f59a2e8181a7d01f8753680676dd150b965728b Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Sat, 11 Feb 2023 09:44:18 +0000 Subject: [PATCH] Fix include_str! compile error in examples/scenes. (#279) I don't think CARGO_MANIFEST_DIR should ever end in "/", though I've only checked on Linux and macOS. --- examples/scenes/src/test_scenes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/scenes/src/test_scenes.rs b/examples/scenes/src/test_scenes.rs index 47a4ff9..84b622c 100644 --- a/examples/scenes/src/test_scenes.rs +++ b/examples/scenes/src/test_scenes.rs @@ -243,7 +243,7 @@ fn included_tiger() -> impl FnMut(&mut SceneBuilder, &mut SceneParams) { let (scene_frag, resolution) = cached_scene.get_or_insert_with(|| { let contents = include_str!(concat!( env!("CARGO_MANIFEST_DIR"), - "../../assets/Ghostscript_Tiger.svg" + "/../assets/Ghostscript_Tiger.svg" )); let svg = usvg::Tree::from_str(&contents, &usvg::Options::default()) .expect("failed to parse svg file");