Skip to content

Commit fa38bbd

Browse files
committed
Fix compile error/warning with --no-default-features
1 parent e141247 commit fa38bbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

splashsurf_lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fxhash = "0.2"
5151
bitflags = "2.4"
5252
smallvec = { version = "1.11", features = ["union"] }
5353
arrayvec = "0.7"
54-
bytemuck = "1.9"
54+
bytemuck = { version = "1.9", features = ["extern_crate_alloc"] }
5555
bytemuck_derive = "1.3"
5656
numeric_literals = "0.2"
5757
rstar = "0.11"

splashsurf_lib/src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::cell::UnsafeCell;
77
/// "Convert" an empty vector to preserve allocated memory if size and alignment matches
88
/// See https://users.rust-lang.org/t/pattern-how-to-reuse-a-vec-str-across-loop-iterations/61657/5
99
/// See https://github.com/rust-lang/rfcs/pull/2802
10+
#[allow(unused)]
1011
pub(crate) fn recycle<A, B>(mut v: Vec<A>) -> Vec<B> {
1112
v.clear();
1213
v.into_iter().map(|_| unreachable!()).collect()

0 commit comments

Comments
 (0)