refactor: we go rusty
parent
188fb30343
commit
4e8d0a8d25
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue