Skip to content

Commit 5aa9c71

Browse files
GKFXemilio
authored andcommitted
Also remove lazy_static from quickchecking
1 parent b7ed526 commit 5aa9c71

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/quickchecking/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ path = "src/bin.rs"
1616

1717
[dependencies]
1818
clap = "4"
19-
lazy_static = "1.0"
2019
quickcheck = "1.0"
2120
tempfile = "3"
2221

bindgen-tests/tests/quickchecking/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
//! println!("{}", header);
1515
//! }
1616
//! ```
17-
//!
1817
#![deny(missing_docs)]
19-
#[macro_use]
20-
extern crate lazy_static;
2118

2219
use quickcheck::{Gen, QuickCheck, TestResult};
2320
use std::error::Error;
@@ -38,10 +35,7 @@ struct Context {
3835
}
3936

4037
// Initialize global context.
41-
lazy_static! {
42-
static ref CONTEXT: Mutex<Context> =
43-
Mutex::new(Context { output_path: None });
44-
}
38+
static CONTEXT: Mutex<Context> = Mutex::new(Context { output_path: None });
4539

4640
// Passes fuzzed header to the `csmith-fuzzing/predicate.py` script, returns
4741
// output of the associated command.

0 commit comments

Comments
 (0)