diff --git a/comms/dht/src/inbound/decryption.rs b/comms/dht/src/inbound/decryption.rs index 48e097222f..a22d33545a 100644 --- a/comms/dht/src/inbound/decryption.rs +++ b/comms/dht/src/inbound/decryption.rs @@ -660,11 +660,18 @@ mod test { // Encrypt an empty message for identity in [&node_identity, &other_identity] { - let mut message = make_dht_inbound_message(identity, &Vec::new(), DhtMessageFlags::ENCRYPTED, true, true).unwrap(); + let mut message = + make_dht_inbound_message(identity, &Vec::new(), DhtMessageFlags::ENCRYPTED, true, true).unwrap(); message.body = Vec::new(); // due to padding, we need to manually reset this // Ban the peer - expect_error(node_identity.clone(), message, DecryptionError::EncryptedMessageEmptyBody, true).await; + expect_error( + node_identity.clone(), + message, + DecryptionError::EncryptedMessageEmptyBody, + true, + ) + .await; } }