refactor: we go rusty

export-backup
Jef Roosens 2023-06-22 20:23:13 +02:00
parent 188fb30343
commit 4e8d0a8d25
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 7 additions and 7 deletions

View File

@ -25,18 +25,18 @@ where
const METADATA_FILE: &str = "alex.json"; const METADATA_FILE: &str = "alex.json";
/// Initialize a new instance of a `BackupManager`. /// Initialize a new instance of a `BackupManager`.
pub fn new( pub fn new<P1: Into<PathBuf>, P2: Into<PathBuf>, P3: Into<PathBuf>>(
backup_dir: PathBuf, backup_dir: P1,
config_dir: PathBuf, config_dir: P2,
world_dir: PathBuf, world_dir: P3,
metadata: T, metadata: T,
chain_len: u64, chain_len: u64,
chains_to_keep: u64, chains_to_keep: u64,
) -> Self { ) -> Self {
Self { Self {
backup_dir, backup_dir: backup_dir.into(),
config_dir, config_dir: config_dir.into(),
world_dir, world_dir: world_dir.into(),
default_metadata: metadata, default_metadata: metadata,
chain_len, chain_len,
chains_to_keep, chains_to_keep,