Migrate to rust edition 2024
This commit is contained in:
parent
cc74779e5d
commit
69f36de2d3
5 changed files with 13 additions and 7 deletions
|
|
@ -10,7 +10,7 @@ use directories::ProjectDirs;
|
|||
|
||||
pub use self::{
|
||||
datadir::{LockedDataDir, UnlockedDataDir},
|
||||
v1::{load_state, save_state, VERSION},
|
||||
v1::{VERSION, load_state, save_state},
|
||||
};
|
||||
|
||||
fn migrate(dir: &LockedDataDir) -> anyhow::Result<()> {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ use std::{
|
|||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use anyhow::{anyhow, bail, Context};
|
||||
use rand::{distr::Alphanumeric, Rng};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use anyhow::{Context, anyhow, bail};
|
||||
use rand::{Rng, distr::Alphanumeric};
|
||||
use serde::{Serialize, de::DeserializeOwned};
|
||||
|
||||
use super::lockfile::LockFile;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// Just the empty directory
|
||||
|
||||
use super::{v1, LockedDataDir};
|
||||
use super::{LockedDataDir, v1};
|
||||
|
||||
pub const VERSION: u32 = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue