Skip to content

Commit 72e85ef

Browse files
nyurikemilio
authored andcommitted
Use v2 cargo resolver
The 2021 usually implies resolver v2, and warns otherwise.
1 parent 7ca75a6 commit 72e85ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "2"
23
members = [
34
"bindgen",
45
"bindgen-cli",
@@ -7,7 +8,6 @@ members = [
78
"bindgen-tests/tests/quickchecking",
89
"bindgen-tests/tests/expectations",
910
]
10-
1111
default-members = [
1212
"bindgen",
1313
"bindgen-cli",
@@ -54,4 +54,3 @@ release = false
5454
[profile.dist]
5555
inherits = "release"
5656
lto = "thin"
57-

bindgen/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ use std::path::{Path, PathBuf};
7474
use std::process::{Command, Stdio};
7575
use std::rc::Rc;
7676
use std::str::FromStr;
77-
use std::sync::{Arc, OnceLock};
7877

7978
// Some convenient typedefs for a fast hash map and hash set.
8079
type HashMap<K, V> = rustc_hash::FxHashMap<K, V>;
@@ -576,6 +575,8 @@ impl BindgenOptions {
576575

577576
#[cfg(feature = "runtime")]
578577
fn ensure_libclang_is_loaded() {
578+
use std::sync::{Arc, OnceLock};
579+
579580
if clang_sys::is_loaded() {
580581
return;
581582
}

0 commit comments

Comments
 (0)