Skip to content

Commit

Permalink
add ptr_arg ignore clippy
Browse files Browse the repository at this point in the history
As we need the type match for deserialization,
the item path is expecting , which
fails if we pass a slice
  • Loading branch information
glihm committed Sep 25, 2023
1 parent 00474cc commit a26aeb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starknet-macros/src/abigen/expand/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl Expandable for CairoFunction {

match &self.state_mutability {
StateMutability::View => quote! {
#[allow(clippy::ptr_arg)]
#decl {
use starknet::contract::abi::CairoType;
use starknet::core::types::{BlockId, BlockTag};
Expand Down Expand Up @@ -112,6 +113,7 @@ impl Expandable for CairoFunction {
// fees (manual, estimated + scale factor).
// The estimate only may be done at the function level, to avoid
// altering the contract instance itself and hence races.
#[allow(clippy::ptr_arg)]
#decl {
use starknet::contract::abi::CairoType;
use starknet::accounts::Account;
Expand Down

0 comments on commit a26aeb2

Please sign in to comment.