support filtering by tags

This commit is contained in:
Dustin J. Mitchell
2020-12-24 16:38:08 +00:00
parent 161c38807d
commit 9c94a7b753
4 changed files with 140 additions and 13 deletions

View File

@@ -34,14 +34,12 @@ pub(super) fn apply_modification<W: WriteColor>(
}
for tag in modification.add_tags.iter() {
// note that the parser should have already ensured that this tag was valid
let tag = tag.try_into()?;
let tag = tag.try_into()?; // see #111
task.add_tag(&tag)?;
}
for tag in modification.remove_tags.iter() {
// note that the parser should have already ensured that this tag was valid
let tag = tag.try_into()?;
let tag = tag.try_into()?; // see #111
task.remove_tag(&tag)?;
}