Fix unused import in todos example on Wasm

This commit is contained in:
Héctor Ramón Jiménez 2025-12-02 19:06:05 +01:00
parent 1383ea4ec2
commit c566845091
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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)?;