Skip to content

Commit

Permalink
Remove once_cell
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Jul 15, 2024
1 parent 9848925 commit 4dfa7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ version = "0.4.7"

[dependencies]
arbitrary = "1"
once_cell = "1"

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#![deny(missing_docs, missing_debug_implementations)]

pub use arbitrary;
use once_cell::sync::OnceCell;
use std::sync::LazyLock;

/// Indicates whether the input should be kept in the corpus or rejected. This
/// should be returned by your fuzz target. If your fuzz target does not return
Expand Down Expand Up @@ -73,7 +73,7 @@ pub unsafe fn test_input_wrap(data: *const u8, size: usize) -> i32 {
}

#[doc(hidden)]
pub static RUST_LIBFUZZER_DEBUG_PATH: OnceCell<String> = OnceCell::new();
pub static RUST_LIBFUZZER_DEBUG_PATH: LazyLock<String> = LazyLock::new();

#[doc(hidden)]
#[export_name = "LLVMFuzzerInitialize"]
Expand Down

0 comments on commit 4dfa7b9

Please sign in to comment.