summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-20 06:27:01 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-20 06:27:01 +0100
commit7cea7371150e6de28032827519936008592f112d (patch)
tree3bfd82272094ef69493de622af6c9b06389a7c27 /examples/tour/src/main.rs
parent04086a90c9e933ebfb42de378054e1115b33529d (diff)
downloadiced-7cea7371150e6de28032827519936008592f112d.tar.gz
iced-7cea7371150e6de28032827519936008592f112d.tar.bz2
iced-7cea7371150e6de28032827519936008592f112d.zip
Package examples and remove `dev-dependencies`
Diffstat (limited to '')
-rw-r--r--examples/tour/src/main.rs (renamed from examples/tour.rs)4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tour.rs b/examples/tour/src/main.rs
index b0ee4d96..43c7e50f 100644
--- a/examples/tour.rs
+++ b/examples/tour/src/main.rs
@@ -681,10 +681,10 @@ fn ferris<'a>(width: u16) -> Container<'a, StepMessage> {
// This should go away once we unify resource loading on native
// platforms
if cfg!(target_arch = "wasm32") {
- Image::new("resources/ferris.png")
+ Image::new("images/ferris.png")
} else {
Image::new(format!(
- "{}/examples/resources/ferris.png",
+ "{}/images/ferris.png",
env!("CARGO_MANIFEST_DIR")
))
}