Skip to content

Commit

Permalink
docs: template - explicitly declare batch_results type and docu…
Browse files Browse the repository at this point in the history
…ment it
  • Loading branch information
jqnatividad committed Nov 11, 2024
1 parent cfb9e7c commit a80d880
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmd/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
#[allow(unused_assignments)]
let mut batch_record = csv::StringRecord::new();
let mut batch = Vec::with_capacity(batchsize);
let mut batch_results = Vec::with_capacity(batchsize);
// batch_results stores the results of template rendering for each batch:
// - First tuple element is the optional output filename (when writing to directory)
// - Second tuple element is the rendered template content
let mut batch_results: Vec<(Option<String>, String)> = Vec::with_capacity(batchsize);

let no_headers = args.flag_no_headers;

Expand Down

0 comments on commit a80d880

Please sign in to comment.