Use `directories-next` in `todos` example
This commit is contained in:
parent
1475b10dff
commit
0400f6716b
|
@ -12,7 +12,7 @@ serde_json = "1.0"
|
|||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
async-std = "1.0"
|
||||
directories = "3.0"
|
||||
directories-next = "2.0"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
web-sys = { version = "0.3", features = ["Window", "Storage"] }
|
||||
|
|
|
@ -499,7 +499,7 @@ enum SaveError {
|
|||
impl SavedState {
|
||||
fn path() -> std::path::PathBuf {
|
||||
let mut path = if let Some(project_dirs) =
|
||||
directories::ProjectDirs::from("rs", "Iced", "Todos")
|
||||
directories_next::ProjectDirs::from("rs", "Iced", "Todos")
|
||||
{
|
||||
project_dirs.data_dir().into()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue