Skip to content

Commit 9bf5e64

Browse files
committed
Use required-features instead of required_multi_thread_feature!
1 parent 45b4353 commit 9bf5e64

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

spdlog/benches/common/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ macro_rules! unavailable_bench {
4545
};
4646
}
4747

48-
#[macro_export]
49-
macro_rules! required_multi_thread_feature {
50-
() => {
51-
#[cfg(not(feature = "multi-thread"))]
52-
compile_error!("please rerun `cargo bench` with `--features multi-thread`");
53-
};
54-
}
55-
5648
#[macro_export]
5749
macro_rules! aggregate_bench_main {
5850
() => {

spdlog/benches/spdlog-rs/compare_with_cpp_spdlog_async.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use spdlog::{
1717
};
1818
use test::black_box;
1919

20-
required_multi_thread_feature!();
21-
2220
fn bench(
2321
policy: OverflowPolicy,
2422
file_name: &str,

spdlog/benches/spdlog-rs/spdlog_rs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ include!(concat!(
2121
));
2222
use test_utils::*;
2323

24-
required_multi_thread_feature!();
25-
2624
enum Mode {
2725
Sync,
2826
Async,

0 commit comments

Comments
 (0)