Skip to content

Commit 34c24c6

Browse files
committed
chore: Fix benchmark code
1 parent 082570d commit 34c24c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-inline/benches/inliner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn simple(c: &mut Criterion) {
2626
}
2727

2828
fn error_formatting(c: &mut Criterion) {
29-
let error = black_box(InlineError::ParseError("Error description".to_string()));
29+
let error = black_box(InlineError::ParseError("Error description".into()));
3030
c.bench_function("error formatting", |b| b.iter(|| format!("{}", error)));
3131
}
3232

0 commit comments

Comments
 (0)