This is an automated email from the ASF dual-hosted git repository.

iffyio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 525ed81f Update criterion requirement from 0.5 to 0.6 in 
/sqlparser_bench (#1857)
525ed81f is described below

commit 525ed81fdeffb3d765be99fc3cc4fd31060e0df1
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue May 20 06:21:41 2025 +0200

    Update criterion requirement from 0.5 to 0.6 in /sqlparser_bench (#1857)
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: ifeanyi <[email protected]>
---
 sqlparser_bench/Cargo.toml                 | 2 +-
 sqlparser_bench/benches/sqlparser_bench.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sqlparser_bench/Cargo.toml b/sqlparser_bench/Cargo.toml
index 2c1f0ae4..01c59be7 100644
--- a/sqlparser_bench/Cargo.toml
+++ b/sqlparser_bench/Cargo.toml
@@ -26,7 +26,7 @@ edition = "2018"
 sqlparser = { path = "../" }
 
 [dev-dependencies]
-criterion = "0.5"
+criterion = "0.6"
 
 [[bench]]
 name = "sqlparser_bench"
diff --git a/sqlparser_bench/benches/sqlparser_bench.rs 
b/sqlparser_bench/benches/sqlparser_bench.rs
index a7768cbc..24c59c07 100644
--- a/sqlparser_bench/benches/sqlparser_bench.rs
+++ b/sqlparser_bench/benches/sqlparser_bench.rs
@@ -68,7 +68,7 @@ fn basic_queries(c: &mut Criterion) {
     };
 
     group.bench_function("parse_large_statement", |b| {
-        b.iter(|| Parser::parse_sql(&dialect, 
criterion::black_box(large_statement.as_str())));
+        b.iter(|| Parser::parse_sql(&dialect, 
std::hint::black_box(large_statement.as_str())));
     });
 
     let large_statement = Parser::parse_sql(&dialect, large_statement.as_str())


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to