From 78013724184d5a72a8640962ab2aed2bac8b7c04 Mon Sep 17 00:00:00 2001 From: Jacinta Ferrant Date: Mon, 30 Dec 2024 15:01:25 -0500 Subject: [PATCH] Fix zero_prefixed_literal warnings Signed-off-by: Jacinta Ferrant --- stackslib/src/burnchains/tests/affirmation.rs | 2 +- stackslib/src/burnchains/tests/burnchain.rs | 6 +++--- stackslib/src/chainstate/burn/db/processing.rs | 2 +- stackslib/src/chainstate/burn/db/sortdb.rs | 10 +++++----- stackslib/src/chainstate/burn/distribution.rs | 6 +++--- .../chainstate/burn/operations/leader_block_commit.rs | 10 +++++----- .../chainstate/burn/operations/leader_key_register.rs | 8 ++++---- stackslib/src/chainstate/stacks/block.rs | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/stackslib/src/burnchains/tests/affirmation.rs b/stackslib/src/burnchains/tests/affirmation.rs index 8876f3d1aa..2416c8f16f 100644 --- a/stackslib/src/burnchains/tests/affirmation.rs +++ b/stackslib/src/burnchains/tests/affirmation.rs @@ -246,7 +246,7 @@ pub fn make_simple_key_register( &hex_bytes("a366b51292bef4edd64063d9145c617fec373bceb0758e98cd72becd84d54c7a").unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: next_txid(), vtxindex: vtxindex, diff --git a/stackslib/src/burnchains/tests/burnchain.rs b/stackslib/src/burnchains/tests/burnchain.rs index 8d72d4efa9..d232fbd710 100644 --- a/stackslib/src/burnchains/tests/burnchain.rs +++ b/stackslib/src/burnchains/tests/burnchain.rs @@ -99,7 +99,7 @@ fn test_process_block_ops() { &hex_bytes("a366b51292bef4edd64063d9145c617fec373bceb0758e98cd72becd84d54c7a").unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562").unwrap(), @@ -119,7 +119,7 @@ fn test_process_block_ops() { &hex_bytes("bb519494643f79f1dea0350e6fb9a1da88dfdb6137117fc2523824a8aa44fe1c").unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes( &hex_bytes("9410df84e2b440055c33acb075a0687752df63fe8fe84aeec61abe469f0448c7").unwrap(), @@ -139,7 +139,7 @@ fn test_process_block_ops() { &hex_bytes("de8af7037e522e65d2fe2d63fb1b764bfea829df78b84444338379df13144a02").unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes( &hex_bytes("eb54704f71d4a2d1128d60ffccced547054b52250ada6f3e7356165714f44d4c").unwrap(), diff --git a/stackslib/src/chainstate/burn/db/processing.rs b/stackslib/src/chainstate/burn/db/processing.rs index 0aacd2816a..ec3a4cdce2 100644 --- a/stackslib/src/chainstate/burn/db/processing.rs +++ b/stackslib/src/chainstate/burn/db/processing.rs @@ -379,7 +379,7 @@ mod tests { "a366b51292bef4edd64063d9145c617fec373bceb0758e98cd72becd84d54c7a", ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") diff --git a/stackslib/src/chainstate/burn/db/sortdb.rs b/stackslib/src/chainstate/burn/db/sortdb.rs index e399121e07..18088808b2 100644 --- a/stackslib/src/chainstate/burn/db/sortdb.rs +++ b/stackslib/src/chainstate/burn/db/sortdb.rs @@ -7066,7 +7066,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -7145,7 +7145,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -7369,7 +7369,7 @@ pub mod tests { ) .unwrap(), public_key: public_key.clone(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -7864,7 +7864,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -10080,7 +10080,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") diff --git a/stackslib/src/chainstate/burn/distribution.rs b/stackslib/src/chainstate/burn/distribution.rs index 59c335cd58..18f1be9935 100644 --- a/stackslib/src/chainstate/burn/distribution.rs +++ b/stackslib/src/chainstate/burn/distribution.rs @@ -818,7 +818,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -843,7 +843,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("9410df84e2b440055c33acb075a0687752df63fe8fe84aeec61abe469f0448c7") @@ -868,7 +868,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("eb54704f71d4a2d1128d60ffccced547054b52250ada6f3e7356165714f44d4c") diff --git a/stackslib/src/chainstate/burn/operations/leader_block_commit.rs b/stackslib/src/chainstate/burn/operations/leader_block_commit.rs index a752131668..1bd154705e 100644 --- a/stackslib/src/chainstate/burn/operations/leader_block_commit.rs +++ b/stackslib/src/chainstate/burn/operations/leader_block_commit.rs @@ -1960,7 +1960,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -1982,7 +1982,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("9410df84e2b440055c33acb075a0687752df63fe8fe84aeec61abe469f0448c7") @@ -2500,7 +2500,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -2522,7 +2522,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("9410df84e2b440055c33acb075a0687752df63fe8fe84aeec61abe469f0448c7") @@ -3558,7 +3558,7 @@ mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid([0x01; 32]), vtxindex: 456, block_height: first_block_height + 1, diff --git a/stackslib/src/chainstate/burn/operations/leader_key_register.rs b/stackslib/src/chainstate/burn/operations/leader_key_register.rs index 5608b6739d..04a07fd452 100644 --- a/stackslib/src/chainstate/burn/operations/leader_key_register.rs +++ b/stackslib/src/chainstate/burn/operations/leader_key_register.rs @@ -284,7 +284,7 @@ pub mod tests { result: Some(LeaderKeyRegisterOp { consensus_hash: ConsensusHash::from_bytes(&hex_bytes("2222222222222222222222222222222222222222").unwrap()).unwrap(), public_key: VRFPublicKey::from_bytes(&hex_bytes("a366b51292bef4edd64063d9145c617fec373bceb0758e98cd72becd84d54c7a").unwrap()).unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be(&hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562").unwrap()).unwrap(), vtxindex: vtxindex, @@ -491,7 +491,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562") @@ -627,7 +627,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes( @@ -656,7 +656,7 @@ pub mod tests { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes( diff --git a/stackslib/src/chainstate/stacks/block.rs b/stackslib/src/chainstate/stacks/block.rs index e0efe6a7c0..b27a5b1540 100644 --- a/stackslib/src/chainstate/stacks/block.rs +++ b/stackslib/src/chainstate/stacks/block.rs @@ -1305,7 +1305,7 @@ mod test { .unwrap(), ) .unwrap(), - memo: vec![01, 02, 03, 04, 05], + memo: vec![1, 2, 3, 4, 5], txid: Txid::from_bytes_be( &hex_bytes("1bfa831b5fc56c858198acb8e77e5863c1e9d8ac26d49ddb914e24d8d4083562")