Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Oct 28, 2024
1 parent 26048f2 commit b750b46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova_vm/src/ecmascript/scripts_and_modules/source_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ impl SourceCode {

if !errors.is_empty() {
// Drop program before dropping allocator.
#[allow(clippy::drop_non_drop)]
drop(program);
// SAFETY: No references to allocator exist anymore. It is safe to
// drop it.
Expand All @@ -103,6 +104,7 @@ impl SourceCode {

if !errors.is_empty() {
// Drop program before dropping allocator.
#[allow(clippy::drop_non_drop)]
drop(program);
// SAFETY: No references to allocator exist anymore. It is safe to
// drop it.
Expand Down

0 comments on commit b750b46

Please sign in to comment.