From b80b78374f195e015fac500a681268be98c11c8c Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 23 Oct 2024 14:40:15 +0800 Subject: [PATCH] remove Some(()) --- quickwit/Cargo.lock | 8 ++++---- quickwit/Cargo.toml | 2 +- quickwit/quickwit-doc-mapper/benches/doc_to_json_bench.rs | 3 --- .../benches/routing_expression_bench.rs | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/quickwit/Cargo.lock b/quickwit/Cargo.lock index 72145496b03..64094d11111 100644 --- a/quickwit/Cargo.lock +++ b/quickwit/Cargo.lock @@ -1027,9 +1027,9 @@ dependencies = [ [[package]] name = "binggan" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "012a2b0aae162c298472025aa0662323c157e63897e32146a6a1bdd286108d6f" +checksum = "b16cf7e26155ca336ba3a7220c817cdfe73a10f867fa352349fd425b43814bd9" dependencies = [ "alloca", "bpu_trasher", @@ -1137,9 +1137,9 @@ dependencies = [ [[package]] name = "bpu_trasher" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b12b1a01c908052583934ce0bdcd738a394a11df7c41d8fd042a588a4231725a" +checksum = "c1da7e5e16c1949a2ba90dd1d9c8330af4b72a3b18cc6bcc738c5fe81bf4be61" dependencies = [ "rand 0.8.5", ] diff --git a/quickwit/Cargo.toml b/quickwit/Cargo.toml index 67562edbf77..82419148e2f 100644 --- a/quickwit/Cargo.toml +++ b/quickwit/Cargo.toml @@ -86,7 +86,7 @@ async-compression = { version = "0.4", features = ["tokio", "gzip"] } async-speed-limit = "0.4" async-trait = "0.1" base64 = "0.22" -binggan = { version = "0.13" } +binggan = { version = "0.14" } bytes = { version = "1", features = ["serde"] } bytesize = { version = "1.3.0", features = ["serde"] } bytestring = "1.3.0" diff --git a/quickwit/quickwit-doc-mapper/benches/doc_to_json_bench.rs b/quickwit/quickwit-doc-mapper/benches/doc_to_json_bench.rs index cd138ef26df..5da11f3d747 100644 --- a/quickwit/quickwit-doc-mapper/benches/doc_to_json_bench.rs +++ b/quickwit/quickwit-doc-mapper/benches/doc_to_json_bench.rs @@ -105,14 +105,12 @@ fn run_bench() { for line in lines { black_box(doc_mapper.doc_from_json_str(line).unwrap()); } - Some(()) }); group.register_with_input("doc_mapper_dynamic", data, |lines| { for line in lines { black_box(dynamic_doc_mapper.doc_from_json_str(line).unwrap()); } - Some(()) }); group.register_with_input("tantivy parse json", data, |lines| { @@ -120,7 +118,6 @@ fn run_bench() { for line in lines { let _doc = black_box(TantivyDocument::parse_json(&schema, line).unwrap()); } - Some(()) }); group.run(); } diff --git a/quickwit/quickwit-doc-mapper/benches/routing_expression_bench.rs b/quickwit/quickwit-doc-mapper/benches/routing_expression_bench.rs index 6bac1f6e6e0..03498778b5a 100644 --- a/quickwit/quickwit-doc-mapper/benches/routing_expression_bench.rs +++ b/quickwit/quickwit-doc-mapper/benches/routing_expression_bench.rs @@ -49,7 +49,6 @@ fn run_bench() { for json in lines.iter() { routing_expr.eval_hash(json); } - Some(()) }); group.run();