From 23fe47bdcb5914224365387c04e8e5a9538e5783 Mon Sep 17 00:00:00 2001 From: Piaoger Date: Thu, 20 Feb 2020 17:28:42 +0800 Subject: [PATCH] Fix sample file path for svg example Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path --- examples/svg/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/svg/src/main.rs b/examples/svg/src/main.rs index 57358e24..1fb80534 100644 --- a/examples/svg/src/main.rs +++ b/examples/svg/src/main.rs @@ -22,7 +22,7 @@ impl Sandbox for Tiger { fn view(&mut self) -> Element<()> { let content = Column::new().padding(20).push( - Svg::new(format!("{}/tiger.svg", env!("CARGO_MANIFEST_DIR"))) + Svg::new(format!("{}/resources/tiger.svg", env!("CARGO_MANIFEST_DIR"))) .width(Length::Fill) .height(Length::Fill), );