Migrate to rust edition 2024

This commit is contained in:
Joscha 2025-02-21 12:49:33 +01:00
parent cc74779e5d
commit 69f36de2d3
5 changed files with 13 additions and 7 deletions

View file

@ -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<()> {

View file

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

View file

@ -1,6 +1,6 @@
// Just the empty directory
use super::{v1, LockedDataDir};
use super::{LockedDataDir, v1};
pub const VERSION: u32 = 0;