Skip to content

Commit ef3dd13

Browse files
committed
Fix warnings on new Rust
1 parent 338961d commit ef3dd13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Ivan Molodetskikh <[email protected]>"]
55
description = "A circular buffer-like queue."
66
license = "MIT/Apache-2.0"
77
build = "build.rs"
8+
edition = "2015"
89

910
readme = "README.md"
1011
documentation = "https://docs.rs/circular-queue"

build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extern crate version_check;
22

33
fn main() {
4+
println!("cargo:rustc-check-cfg=cfg(has_extern_crate_alloc)");
45
if version_check::is_min_version("1.36.0").unwrap_or(false) {
56
println!("cargo:rustc-cfg=has_extern_crate_alloc");
67
}

0 commit comments

Comments
 (0)