mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
CRC: fix whitespace
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user