Skip to content

Commit

Permalink
clippy: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ICavlek committed Oct 22, 2024
1 parent 4095926 commit 6ba7d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ pub mod gen {
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(untagged)]
pub enum InvokeTxnTraceExecuteInvocation {
FunctionInvocation(FunctionInvocation),
FunctionInvocation(Box<FunctionInvocation>),
RevertReason { revert_reason: String },
}

Expand Down Expand Up @@ -1761,7 +1761,7 @@ pub mod gen {
pub enum TransactionTrace {
InvokeTxnTrace(InvokeTxnTrace),
DeclareTxnTrace(DeclareTxnTrace),
DeployAccountTxnTrace(DeployAccountTxnTrace),
DeployAccountTxnTrace(Box<DeployAccountTxnTrace>),
L1HandlerTxnTrace(L1HandlerTxnTrace),
}

Expand Down
2 changes: 1 addition & 1 deletion tests/starknet/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn update_account(path: &str) -> Result<(), Error> {

#[allow(dead_code)]
pub fn copy_to_target() -> Result<(), Error> {
if !fs::metadata("./target/account").is_ok() {
if fs::metadata("./target/account").is_err() {
fs::create_dir("./target/account/")?;
fs::create_dir("./target/account/src/")?;
fs::copy(
Expand Down

0 comments on commit 6ba7d70

Please sign in to comment.