From c56684509182c3f59d80dd19b9eb91f842cce3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 2 Dec 2025 19:06:05 +0100 Subject: [PATCH] Fix unused import in `todos` example on Wasm --- examples/todos/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 34f86a91..39f90602 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -1,5 +1,4 @@ use iced::keyboard; -use iced::time::milliseconds; use iced::widget::{ self, Text, button, center, center_x, checkbox, column, keyed_column, operation, row, scrollable, text, text_input, @@ -526,6 +525,8 @@ impl SavedState { } async fn save(self) -> Result<(), SaveError> { + use iced::time::milliseconds; + let json = serde_json::to_string_pretty(&self) .map_err(|_| SaveError::Format)?;