CRC: fix whitespace

Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
Jacinta Ferrant
2024-05-14 13:53:00 -07:00
parent 65859b7f75
commit 69fa6effbc
2 changed files with 8 additions and 7 deletions

View File

@@ -191,7 +191,7 @@ pub trait StacksMessageCodecExtensions: Sized {
define_u8_enum!(
/// Enum representing the reject code type prefix
RejectCodeTypePrefix{
RejectCodeTypePrefix {
/// The block was rejected due to validation issues
ValidationFailed = 0,
/// The block was rejected due to connectivity issues with the signer
@@ -227,7 +227,7 @@ pub enum RejectCode {
define_u8_enum!(
/// Enum representing the BlockResponse type prefix
BlockResponseTypePrefix{
BlockResponseTypePrefix {
/// An accepted block response
Accepted = 0,
/// A rejected block response
@@ -415,6 +415,7 @@ impl StacksMessageCodec for RejectCode {
}
}
#[cfg_attr(test, mutants::skip)]
impl std::fmt::Display for RejectCode {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {

View File

@@ -213,7 +213,7 @@ impl TryFrom<u8> for MessageTypePrefix {
define_u8_enum!(
/// Enum representing the reject code type prefix
RejectCodeTypePrefix{
RejectCodeTypePrefix {
/// Validation failed
ValidationFailed = 0,
/// Signed rejection
@@ -570,7 +570,7 @@ impl StacksMessageCodecExtensions for HashSet<u32> {
define_u8_enum!(
/// Enum representing the DKG failure type prefix
DkgFailureTypePrefix{
DkgFailureTypePrefix {
/// Bad state
BadState = 0,
/// Missing public shares
@@ -711,8 +711,8 @@ impl StacksMessageCodecExtensions for DkgEndBegin {
define_u8_enum!(
/// Enum representing the DKG status type prefix
DkgStatusTypePrefix{
/// Success
DkgStatusTypePrefix {
/// Success
Success = 0,
/// Failure
Failure = 1
@@ -1125,7 +1125,7 @@ impl StacksMessageCodecExtensions for Packet {
define_u8_enum!(
/// Enum representing the block response type prefix
BlockResponseTypePrefix{
BlockResponseTypePrefix {
/// Accepted
Accepted = 0,
/// Rejected