Skip to content

Commit

Permalink
Avoid with_capacity for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 11, 2024
1 parent d42deb6 commit 6614641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ pub fn list_mutants(mutants: &[Mutant], options: &Options) -> String {
// TODO: Do we need to check this? Could the console library strip them if they're not
// supported?
let colors = options.colors.active_stdout();
let mut out = String::with_capacity(200 * mutants.len());
// let mut out = String::with_capacity(200 * mutants.len());
// TODO: Use with_capacity when we can have mutants skip it (#315
let mut out = String::new();
for mutant in mutants {
out.push_str(&mutant.name(options.show_line_col, colors));
out.push('\n');
Expand Down

0 comments on commit 6614641

Please sign in to comment.