Skip to content

Commit

Permalink
bench: Generalize the binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 9, 2024
1 parent 4b7a702 commit da8cc5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ toml = "0.5.11"
tryfn = "0.2.1"

[[bench]]
name = "simple"
name = "bench"
harness = false

[[test]]
Expand Down
2 changes: 1 addition & 1 deletion benches/simple.rs → benches/bench.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use annotate_snippets::{Level, Renderer, Snippet};

#[divan::bench]
fn create_and_render() -> String {
fn simple() -> String {
let source = r#") -> Option<String> {
for ann in annotations {
match (ann.range.0, ann.range.1) {
Expand Down

0 comments on commit da8cc5f

Please sign in to comment.