From c34ce37e6dac63d5c0bcb1f4439e1ff1f02cd33a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 24 Sep 2023 01:17:02 +0200 Subject: [PATCH] chore: fix warnings Signed-off-by: kjuulh --- crates/crunch-envelope/Cargo.toml | 3 --- crates/crunch-envelope/src/lib.rs | 3 +-- crates/test-bin/src/main.rs | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/crunch-envelope/Cargo.toml b/crates/crunch-envelope/Cargo.toml index 4b7efcc..0b66370 100644 --- a/crates/crunch-envelope/Cargo.toml +++ b/crates/crunch-envelope/Cargo.toml @@ -9,9 +9,6 @@ edition = "2021" name = "envelope_benchmark" harness = false -[profile.bench] -debug = true - [features] default = ["json", "proto"] json = ["dep:serde", "dep:serde_json", "dep:base64"] diff --git a/crates/crunch-envelope/src/lib.rs b/crates/crunch-envelope/src/lib.rs index ad294a0..3e6dbfa 100644 --- a/crates/crunch-envelope/src/lib.rs +++ b/crates/crunch-envelope/src/lib.rs @@ -1,3 +1,4 @@ +#[allow(dead_code)] mod envelope_capnp; #[cfg(feature = "json")] @@ -47,8 +48,6 @@ pub fn wrap<'a>(domain: &'a str, entity: &'a str, content: &'a [u8]) -> Vec metadata.set_domain(domain); metadata.set_entity(entity); - - serialize::write_message_to_words(&builder) } diff --git a/crates/test-bin/src/main.rs b/crates/test-bin/src/main.rs index b70e6fe..b250fd9 100644 --- a/crates/test-bin/src/main.rs +++ b/crates/test-bin/src/main.rs @@ -19,9 +19,9 @@ fn main() { let large_content: [u8; 1000000] = [0; 1000000]; - envelope_capnp_benchmark(&large_content);; + envelope_capnp_benchmark(&large_content); - envelope_json_benchmark(&large_content);; + envelope_json_benchmark(&large_content); println!("done") }