Return an iterator-bool tuple instead of just an iterator.

This commit is contained in:
Patrick Thomson 2020-08-05 11:18:59 -04:00
parent 1a571ae208
commit 5a52dc2cd7
3 changed files with 9 additions and 5 deletions

View file

@ -53,7 +53,8 @@ pub fn generate_tags(
let source = fs::read(path)?;
let t0 = Instant::now();
for tag in context.generate_tags(tags_config, &source, Some(&cancellation_flag))? {
let (tagged, _) = context.generate_tags(tags_config, &source, Some(&cancellation_flag))?;
for tag in tagged {
let tag = tag?;
if !quiet {
write!(