summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Thomas <thomasbirke@gmx.de>2023-09-09 22:42:41 +0200
committerLibravatar Thomas <thomasbirke@gmx.de>2023-09-09 22:42:41 +0200
commitfbc9ef74c406b2a58bb2a093262323e346faf485 (patch)
tree08b39b5293f8526f9fc30deceb927a9e41c9d610 /examples
parent052fe0edaeb0d6ce096375751eec02b953faf2a1 (diff)
downloadiced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.gz
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.tar.bz2
iced-fbc9ef74c406b2a58bb2a093262323e346faf485.zip
Change init_with_level to init in examples
Diffstat (limited to 'examples')
-rw-r--r--examples/integration/Cargo.toml1
-rw-r--r--examples/integration/src/main.rs2
-rw-r--r--examples/tour/Cargo.toml1
-rw-r--r--examples/tour/src/main.rs2
4 files changed, 2 insertions, 4 deletions
diff --git a/examples/integration/Cargo.toml b/examples/integration/Cargo.toml
index 6b9fcc57..a4a961f8 100644
--- a/examples/integration/Cargo.toml
+++ b/examples/integration/Cargo.toml
@@ -19,6 +19,5 @@ iced_wgpu.features = ["webgl"]
console_error_panic_hook = "0.1"
console_log = "1.0"
-log.workspace = true
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = ["Element", "HtmlCanvasElement", "Window", "Document"] }
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index af48af5f..d0b2d891 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -29,7 +29,7 @@ use winit::platform::web::WindowBuilderExtWebSys;
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(target_arch = "wasm32")]
let canvas_element = {
- console_log::init_with_level(log::Level::Debug)?;
+ console_log::init().expect("Initialize logger");
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml
index 11920e0d..9e984ad1 100644
--- a/examples/tour/Cargo.toml
+++ b/examples/tour/Cargo.toml
@@ -18,4 +18,3 @@ iced.features = ["image", "debug", "webgl"]
console_error_panic_hook = "0.1"
console_log = "1.0"
-log.workspace = true
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index f0e3c0cd..3387b481 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -10,7 +10,7 @@ use iced::{Color, Element, Font, Length, Renderer, Sandbox, Settings};
pub fn main() -> iced::Result {
#[cfg(target_arch = "wasm32")]
{
- console_log::init_with_level(log::Level::Debug).expect("Initialize logger");
+ console_log::init().expect("Initialize logger");
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
}