Skip to content

Commit

Permalink
Fix zero_prefixed_literal warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 30, 2024
1 parent 3d2949d commit 7801372
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion stackslib/src/burnchains/tests/affirmation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions stackslib/src/burnchains/tests/burnchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand All @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/chainstate/burn/db/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
10 changes: 5 additions & 5 deletions stackslib/src/chainstate/burn/db/sortdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions stackslib/src/chainstate/burn/distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down
10 changes: 5 additions & 5 deletions stackslib/src/chainstate/burn/operations/leader_block_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/chainstate/stacks/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7801372

Please sign in to comment.