Fix for new StoreId::new() interface
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
5fe139e02b
commit
1bbd2173b7
1 changed files with 1 additions and 2 deletions
|
@ -132,8 +132,7 @@ fn get_entry_by_name<'a>(rt: &'a Runtime, name: &str) -> Result<Option<FileLockE
|
||||||
use libimagstore::storeid::StoreId;
|
use libimagstore::storeid::StoreId;
|
||||||
|
|
||||||
debug!("Getting: {:?}", name);
|
debug!("Getting: {:?}", name);
|
||||||
let result = StoreId::new(Some(rt.store().path().clone()), PathBuf::from(name))
|
let result = StoreId::new(PathBuf::from(name)).and_then(|id| rt.store().get(id));
|
||||||
.and_then(|id| rt.store().get(id));
|
|
||||||
|
|
||||||
debug!(" => : {:?}", result);
|
debug!(" => : {:?}", result);
|
||||||
result
|
result
|
||||||
|
|
Loading…
Reference in a new issue