chore: fix

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

View File

@@ -17,7 +17,7 @@ pub fn wrap<'a>(domain: &'a str, entity: &'a str, content: &'a [u8]) -> Vec<u8>
out.encode_to_vec()
}
pub fn unwrap<'a>(message: &'a [u8]) -> Result<(Vec<u8>, Metadata), EnvelopeError> {
pub fn unwrap(message: &[u8]) -> Result<(Vec<u8>, Metadata), EnvelopeError> {
let out = Envelope::decode(message).map_err(EnvelopeError::ProtoError)?;
Ok((