From 8b77974e677fc9e24e068cf28c4c05a18044b45c Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Fri, 27 Mar 2026 19:03:07 +0100 Subject: [PATCH] Remember to cargo fmt --- sachy-crypto/src/lib.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sachy-crypto/src/lib.rs b/sachy-crypto/src/lib.rs index 078b773..f6b39c1 100644 --- a/sachy-crypto/src/lib.rs +++ b/sachy-crypto/src/lib.rs @@ -153,7 +153,11 @@ pub struct SendingState<'a> { } impl SendingState<'_> { - pub fn encrypt(&mut self, msg: &mut alloc::vec::Vec, associated_data: &[u8]) -> Result<(), ProtoError> { + pub fn encrypt( + &mut self, + msg: &mut alloc::vec::Vec, + associated_data: &[u8], + ) -> Result<(), ProtoError> { let counter = self.counter.to_be_bytes(); self.transport.encrypt_in_place( @@ -180,7 +184,11 @@ pub struct ReceivingState<'a> { } impl ReceivingState<'_> { - pub fn decrypt(&mut self, msg: &mut alloc::vec::Vec, associated_data: &[u8]) -> Result<(), ProtoError> { + pub fn decrypt( + &mut self, + msg: &mut alloc::vec::Vec, + associated_data: &[u8], + ) -> Result<(), ProtoError> { let counter = self.counter.to_be_bytes(); self.transport.decrypt_in_place( -- 2.51.2