Skip to content

Commit

Permalink
Wrap CallTraceV1 into Box for optimization (#22)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #21 

## Introduced changes

<!-- A brief description of the changes -->

- Fixed clippy warning for missing Box for CallTraceV1
(https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant)

## Checklist

<!-- Make sure all of these are complete -->

- [X] Linked relevant issue
- [] Updated relevant documentation
- [ ] Added relevant tests
- [X] Performed self-review of the code
- [ ] Added changes to `CHANGELOG.md`
  • Loading branch information
THenry14 authored Nov 4, 2024
1 parent 8314c54 commit 3d5bf50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Wrapped CallTraceV1 into Box for better performance

2 changes: 1 addition & 1 deletion crates/cairo-annotations/src/trace_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct CasmLevelInfo {
/// Enum representing node of a trace of a call.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum CallTraceNode {
EntryPointCall(CallTraceV1),
EntryPointCall(Box<CallTraceV1>),
DeployWithoutConstructor,
}

Expand Down

0 comments on commit 3d5bf50

Please sign in to comment.