diff --git a/rust/sbd-e2e-crypto-client/src/lib.rs b/rust/sbd-e2e-crypto-client/src/lib.rs index faa8636..c6e3e37 100644 --- a/rust/sbd-e2e-crypto-client/src/lib.rs +++ b/rust/sbd-e2e-crypto-client/src/lib.rs @@ -42,8 +42,8 @@ impl Default for Config { } } -// tokio mutex required to ensure ordering on new stream messages -// we can't send in parallel over the same sub-client anyways. +// tokio mutex required to ensure ordering on new stream messages. +// We can't send in parallel over the same sub-client anyways. type ClientSync = tokio::sync::Mutex; /// Handle to receive data from the crypto connection. diff --git a/rust/sbd-e2e-crypto-client/src/protocol.rs b/rust/sbd-e2e-crypto-client/src/protocol.rs index 2462a4c..e6021a0 100644 --- a/rust/sbd-e2e-crypto-client/src/protocol.rs +++ b/rust/sbd-e2e-crypto-client/src/protocol.rs @@ -72,7 +72,7 @@ pub enum Protocol { message: bytes::Bytes, }, - /// Request for a new descryption stream state. + /// Request for a new decryption stream state. RequestNewStream { #[allow(missing_docs)] full: bytes::Bytes, @@ -237,7 +237,7 @@ mod test { } #[test] - fn other() { + fn invalid_type() { let mut exp_other = bytes::BytesMut::new(); exp_other.extend_from_slice(PUB_KEY); exp_other.extend_from_slice(&[0x42]);