refactor: we go rusty
parent
188fb30343
commit
4e8d0a8d25
|
@ -25,18 +25,18 @@ where
|
|||
const METADATA_FILE: &str = "alex.json";
|
||||
|
||||
/// Initialize a new instance of a `BackupManager`.
|
||||
pub fn new(
|
||||
backup_dir: PathBuf,
|
||||
config_dir: PathBuf,
|
||||
world_dir: PathBuf,
|
||||
pub fn new<P1: Into<PathBuf>, P2: Into<PathBuf>, P3: Into<PathBuf>>(
|
||||
backup_dir: P1,
|
||||
config_dir: P2,
|
||||
world_dir: P3,
|
||||
metadata: T,
|
||||
chain_len: u64,
|
||||
chains_to_keep: u64,
|
||||
) -> Self {
|
||||
Self {
|
||||
backup_dir,
|
||||
config_dir,
|
||||
world_dir,
|
||||
backup_dir: backup_dir.into(),
|
||||
config_dir: config_dir.into(),
|
||||
world_dir: world_dir.into(),
|
||||
default_metadata: metadata,
|
||||
chain_len,
|
||||
chains_to_keep,
|
||||
|
|
Loading…
Reference in New Issue