Fix unused import in todos example on Wasm
This commit is contained in:
parent
1383ea4ec2
commit
c566845091
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
use iced::keyboard;
|
use iced::keyboard;
|
||||||
use iced::time::milliseconds;
|
|
||||||
use iced::widget::{
|
use iced::widget::{
|
||||||
self, Text, button, center, center_x, checkbox, column, keyed_column,
|
self, Text, button, center, center_x, checkbox, column, keyed_column,
|
||||||
operation, row, scrollable, text, text_input,
|
operation, row, scrollable, text, text_input,
|
||||||
|
|
@ -526,6 +525,8 @@ impl SavedState {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn save(self) -> Result<(), SaveError> {
|
async fn save(self) -> Result<(), SaveError> {
|
||||||
|
use iced::time::milliseconds;
|
||||||
|
|
||||||
let json = serde_json::to_string_pretty(&self)
|
let json = serde_json::to_string_pretty(&self)
|
||||||
.map_err(|_| SaveError::Format)?;
|
.map_err(|_| SaveError::Format)?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue