Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix clippy warnings #184

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ usecxx17 = ["snmalloc-sys/usecxx17"]
check = ["snmalloc-sys/check"]
lto = ["snmalloc-sys/lto"]
notls = ["snmalloc-sys/notls"]
stats = ["snmalloc-sys/stats"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ are listed at
- `win8compat`: Improve compatibility for old Windows platforms (removing usages of `VirtualAlloc2` and other new APIs)
- `lto`: Links with InterProceduralOptimization/LinkTimeOptimization
- `notls`: Enables to be loaded dynamically, thus disable tls.
- `stats`: Enables allocation statistics.

**To get the crates compiled, you need to choose either `1mib` or `16mib` to determine the chunk configuration**

Expand Down
1 change: 1 addition & 0 deletions snmalloc-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ usecxx17 = []
check = []
lto = []
notls = []
stats = []
8 changes: 0 additions & 8 deletions snmalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ fn main() {
if cfg!(feature = "android-lld") {
build.define("ANDROID_LD", "lld");
}
if cfg!(feature = "android-shared-stl") {
build.define("ANDROID_STL", "c++_shared");
}
if triple.contains("aarch64") {
build.define("ANDROID_ABI", "arm64-v8a");
} else if triple.contains("armv7") {
Expand Down Expand Up @@ -198,11 +195,6 @@ fn main() {
cfg = cfg.define("ANDROID_LD", "lld");
}

if cfg!(feature = "android-shared-stl") {
println!("cargo:rustc-link-lib=dylib=c++_shared");
cfg = cfg.define("ANDROID_STL", "c++_shared");
}

if triple.contains("aarch64") {
cfg = cfg.define("ANDROID_ABI", "arm64-v8a");
} else if triple.contains("armv7") {
Expand Down
2 changes: 1 addition & 1 deletion snmalloc-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_std]
#![allow(non_camel_case_types)]

use {core::ffi::c_void, core::usize};
use core::ffi::c_void;

extern "C" {
/// Allocate the memory with the given alignment and size.
Expand Down
Loading