Fix for new StoreId::new() interface

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-11 22:47:44 +01:00
parent 5fe139e02b
commit 1bbd2173b7

View file

@ -132,8 +132,7 @@ fn get_entry_by_name<'a>(rt: &'a Runtime, name: &str) -> Result<Option<FileLockE
use libimagstore::storeid::StoreId;
debug!("Getting: {:?}", name);
let result = StoreId::new(Some(rt.store().path().clone()), PathBuf::from(name))
.and_then(|id| rt.store().get(id));
let result = StoreId::new(PathBuf::from(name)).and_then(|id| rt.store().get(id));
debug!(" => : {:?}", result);
result