vmm: Make PmemConfig owned

Convert Path to PathBuf and remove the associated lifetime.

Fixes #298

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-09-23 19:27:56 +02:00
committed by Rob Bradford
parent 00674cd850
commit 79a02f9171
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -719,7 +719,7 @@ impl DeviceManager {
.read(true)
.write(true)
.custom_flags(custom_flags)
.open(pmem_cfg.file)
.open(&pmem_cfg.file)
.map_err(DeviceManagerError::PmemFileOpen)?;
if set_len {