summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentrytag/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-06-26 20:08:42 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-06-29 21:36:59 +0200
commit2ef57a69eda86d805261b77713de1b7545c04494 (patch)
tree41d1646a637c8ec958bc5878126f6eac287a5400 /lib/entry/libimagentrytag/src/lib.rs
parent1047a06a64be862acc0de8aabab4c11996099824 (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.rs2
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;