Skip to content

Commit 62177a2

Browse files
hamirmahalsharkdp
authored andcommitted
refactor: remove unnecessary .clone() calls
1 parent 89f799e commit 62177a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

numbat/src/column_formatter.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ impl ColumnFormatter {
3737

3838
if min_num_columns < 1 {
3939
for entry in entries {
40-
result +=
41-
Markup::from(FormattedString(OutputType::Normal, format.clone(), entry))
42-
+ m::whitespace(" ".repeat(self.padding));
40+
result += Markup::from(FormattedString(OutputType::Normal, format, entry))
41+
+ m::whitespace(" ".repeat(self.padding));
4342
}
4443
return result;
4544
}
@@ -81,7 +80,7 @@ impl ColumnFormatter {
8180

8281
result += Markup::from(FormattedString(
8382
OutputType::Normal,
84-
format.clone(),
83+
format,
8584
(*entry).into(),
8685
));
8786
result += m::whitespace(" ".repeat(whitespace_length));

0 commit comments

Comments
 (0)