Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Sep 28, 2023
1 parent 6badb6c commit 73ba6a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions starknet-core/src/types/messaging.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use alloc::vec::Vec;

use num_bigint::BigUint;

// TODO: running cargo test --all the `Num` is needed.
// But running clippy, I have a warning as unused import.
#[allow(unused_imports)]
Expand All @@ -19,6 +18,7 @@ pub struct MsgL1ToL2 {
payload: Vec<FieldElement>,
}

#[allow(clippy::vec_init_then_push)]
impl MsgL1ToL2 {
/// Returns the hash as a vector a FieldElements
/// representing a serialized u256: [low, high].
Expand Down Expand Up @@ -142,7 +142,8 @@ mod test {
// Tx used for this test on goerli:
// 0x46144b600db00853c57a8cf003030ffaa51a810758ef5bfe1bb42bf55b7af38.
let mut calldata = Vec::new();
calldata.push(FieldElement::from_hex_be("0xbe3c44c09bc1a3566f3e1ca12e5aba0fa4ca72be").unwrap());
calldata
.push(FieldElement::from_hex_be("0xbe3c44c09bc1a3566f3e1ca12e5aba0fa4ca72be").unwrap());
calldata.push(FieldElement::ONE);
calldata.push(FieldElement::TWO);

Expand Down

0 comments on commit 73ba6a7

Please sign in to comment.