Skip to content

Commit

Permalink
fix: use ptr::null instead of casting 0 to a pointer
Browse files Browse the repository at this point in the history
Clippy is getting angry about this.
  • Loading branch information
Stebalien committed Aug 14, 2023
1 parent 339396f commit 3cdee33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testing/test_actors/actors/fil-events-actor/src/actor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use std::ptr;

use fvm_ipld_encoding::ipld_block::IpldBlock;
use fvm_ipld_encoding::IPLD_RAW;
use fvm_sdk as sdk;
Expand Down Expand Up @@ -61,9 +63,9 @@ pub fn invoke(params: u32) -> u32 {
sdk::sys::event::emit_event(
&entry as *const fvm_shared::sys::EventEntry,
1,
0 as *const u8,
ptr::null(),
4,
0 as *const u8,
ptr::null(),
0,
)
.is_err(),
Expand Down

0 comments on commit 3cdee33

Please sign in to comment.