chore: fix warnings

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

View File

@@ -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"]

View File

@@ -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)
}