chore: fix warnings

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-09-24 01:17:02 +02:00
parent 8a648c98cc
commit c34ce37e6d
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
3 changed files with 3 additions and 7 deletions

View File

@ -9,9 +9,6 @@ edition = "2021"
name = "envelope_benchmark" name = "envelope_benchmark"
harness = false harness = false
[profile.bench]
debug = true
[features] [features]
default = ["json", "proto"] default = ["json", "proto"]
json = ["dep:serde", "dep:serde_json", "dep:base64"] json = ["dep:serde", "dep:serde_json", "dep:base64"]

View File

@ -1,3 +1,4 @@
#[allow(dead_code)]
mod envelope_capnp; mod envelope_capnp;
#[cfg(feature = "json")] #[cfg(feature = "json")]
@ -47,8 +48,6 @@ pub fn wrap<'a>(domain: &'a str, entity: &'a str, content: &'a [u8]) -> Vec<u8>
metadata.set_domain(domain); metadata.set_domain(domain);
metadata.set_entity(entity); metadata.set_entity(entity);
serialize::write_message_to_words(&builder) serialize::write_message_to_words(&builder)
} }

View File

@ -19,9 +19,9 @@ fn main() {
let large_content: [u8; 1000000] = [0; 1000000]; 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") println!("done")
} }