Skip to content

Commit d33f90b

Browse files
committed
Add html5ever-0.31.0-new-solver benchmark
1 parent 03951e8 commit d33f90b

35 files changed

+8902
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "ce481196ff2e60eb536d9c022f4ca00bd5181f15"
4+
},
5+
"path_in_vcs": "html5ever"
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/util/str.rs b/src/util/str.rs
2+
index 2c0ec3e2..a78ff669 100644
3+
--- a/src/util/str.rs
4+
+++ b/src/util/str.rs
5+
@@ -10,6 +10,7 @@
6+
use std::fmt;
7+
8+
pub(crate) fn to_escaped_string<T: fmt::Debug>(x: &T) -> String {
9+
+ println!("testing");
10+
// FIXME: don't allocate twice
11+
let string = format!("{x:?}");
12+
string.chars().flat_map(|c| c.escape_default()).collect()

0 commit comments

Comments
 (0)