Return an iterator-bool tuple instead of just an iterator.
This commit is contained in:
parent
1a571ae208
commit
5a52dc2cd7
3 changed files with 9 additions and 5 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue