From 0a4cedc0a31db1f2a4e7203c1ac76570b638376d Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sun, 24 Feb 2019 23:26:14 -0500 Subject: [PATCH] Specifying two separate Path Replacing single path `P` with `D: AsRef, W: AsRef` --- src/backup.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backup.rs b/src/backup.rs index f53e918..0f324bf 100644 --- a/src/backup.rs +++ b/src/backup.rs @@ -92,10 +92,10 @@ impl BackupEngine { /// error!("Failed to restore from the backup. Error:{:?}", e); /// return Err(e.to_string()); /// } - pub fn restore_from_latest_backup>( + pub fn restore_from_latest_backup, W: AsRef>( &mut self, - db_dir: P, - wal_dir: P, + db_dir: D, + wal_dir: W, opts: &RestoreOptions, ) -> Result<(), Error> { let db_dir = db_dir.as_ref();