diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-06-26 20:08:42 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-06-29 21:36:59 +0200 |
commit | 2ef57a69eda86d805261b77713de1b7545c04494 (patch) | |
tree | 41d1646a637c8ec958bc5878126f6eac287a5400 /lib/entry/libimagentrytag/src/lib.rs | |
parent | 1047a06a64be862acc0de8aabab4c11996099824 (diff) |
Simplify implementation using toml-query Partial
This patch rewrites the get_tags() function to use toml_query::read::Partial.
The helper functions is_tag_str and is_tag are rewritten for
compatiblity.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry/libimagentrytag/src/lib.rs')
-rw-r--r-- | lib/entry/libimagentrytag/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/entry/libimagentrytag/src/lib.rs b/lib/entry/libimagentrytag/src/lib.rs index ba944409..93fcfeb0 100644 --- a/lib/entry/libimagentrytag/src/lib.rs +++ b/lib/entry/libimagentrytag/src/lib.rs @@ -43,6 +43,8 @@ extern crate itertools; extern crate regex; extern crate toml; extern crate toml_query; +extern crate serde; +#[macro_use] extern crate serde_derive; #[macro_use] extern crate is_match; extern crate filters; #[macro_use] extern crate failure; |