chore: fix warnings
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
8a648c98cc
commit
c34ce37e6d
@ -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"]
|
||||
|
@ -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<u8>
|
||||
metadata.set_domain(domain);
|
||||
metadata.set_entity(entity);
|
||||
|
||||
|
||||
|
||||
serialize::write_message_to_words(&builder)
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user