indexer: Rust crate updates

This commit is contained in:
Yorhel 2017-01-17 11:01:11 +01:00
parent 1923b9901d
commit d720441fb4
8 changed files with 140 additions and 126 deletions

View file

@ -47,8 +47,8 @@ fn read_desc(rd: &mut archive::ArchiveEntry) -> Result<Option<Meta>> {
let mut arch = None;
for kv in RE.captures_iter(&data) {
let key = kv.at(1).unwrap();
let val = kv.at(2).unwrap();
let key = &kv[1];
let val = kv.get(2).unwrap().as_str();
trace!("{}: {} = {}", path, key, val);
match key {
"FILENAME" => filename = Some(val),