[librsvg: 5/7] Fix path_parser benchmark
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/7] Fix path_parser benchmark
- Date: Thu, 29 Oct 2020 00:48:33 +0000 (UTC)
commit d7390f42010923185226726c38f72330f52ae5d6
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Oct 28 18:12:34 2020 -0600
Fix path_parser benchmark
rsvg_internals/benches/path_parser.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/benches/path_parser.rs b/rsvg_internals/benches/path_parser.rs
index d368e5b6..7dede04c 100644
--- a/rsvg_internals/benches/path_parser.rs
+++ b/rsvg_internals/benches/path_parser.rs
@@ -27,7 +27,7 @@ static SLICE_EDGES: [(usize, usize); 14] = [
];
fn lex_path(input: &str) {
- let lexer = Lexer::new(black_box(INPUT));
+ let lexer = Lexer::new(black_box(input));
for (_pos, _token) in lexer {
// no-op
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]