From ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 10:40:01 +0200 Subject: Rename crate to `markdown` --- benches/bench.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'benches') diff --git a/benches/bench.rs b/benches/bench.rs index d72e7c3..5ba0e16 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,14 +1,13 @@ #[macro_use] extern crate criterion; use criterion::{BenchmarkId, Criterion}; -use micromark::micromark; use std::fs; fn readme(c: &mut Criterion) { let doc = fs::read_to_string("readme.md").unwrap(); c.bench_with_input(BenchmarkId::new("readme", "readme"), &doc, |b, s| { - b.iter(|| micromark(s)); + b.iter(|| markdown::to_html(s)); }); } @@ -17,7 +16,7 @@ fn readme(c: &mut Criterion) { // let mut group = c.benchmark_group("giant"); // group.sample_size(10); // group.bench_with_input(BenchmarkId::new("giant", "1.5 mb"), &doc, |b, s| { -// b.iter(|| micromark(s)); +// b.iter(|| markdown::to_html(s)); // }); // group.finish(); // } -- cgit