libimagentrytag: Remove EntryHeader type, use toml::Value
This commit is contained in:
parent
725848713b
commit
cba1fae80f
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@
|
||||||
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
|
|
||||||
use libimagstore::store::{Entry, EntryHeader};
|
use libimagstore::store::Entry;
|
||||||
use libimagerror::into::IntoError;
|
use libimagerror::into::IntoError;
|
||||||
|
use libimagstore::toml_ext::TomlValueExt;
|
||||||
|
|
||||||
use error::TagErrorKind;
|
use error::TagErrorKind;
|
||||||
use error::MapErrInto;
|
use error::MapErrInto;
|
||||||
|
@ -43,7 +44,7 @@ pub trait Tagable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Tagable for EntryHeader {
|
impl Tagable for Value {
|
||||||
|
|
||||||
fn get_tags(&self) -> Result<Vec<Tag>> {
|
fn get_tags(&self) -> Result<Vec<Tag>> {
|
||||||
let tags = try!(self.read("imag.tags").map_err_into(TagErrorKind::HeaderReadError));
|
let tags = try!(self.read("imag.tags").map_err_into(TagErrorKind::HeaderReadError));
|
||||||
|
|
Loading…
Reference in a new issue