Skip to content

Commit

Permalink
Fix compile error/warning with --no-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
w1th0utnam3 committed Sep 25, 2023
1 parent e141247 commit fa38bbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion splashsurf_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fxhash = "0.2"
bitflags = "2.4"
smallvec = { version = "1.11", features = ["union"] }
arrayvec = "0.7"
bytemuck = "1.9"
bytemuck = { version = "1.9", features = ["extern_crate_alloc"] }
bytemuck_derive = "1.3"
numeric_literals = "0.2"
rstar = "0.11"
Expand Down
1 change: 1 addition & 0 deletions splashsurf_lib/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::cell::UnsafeCell;
/// "Convert" an empty vector to preserve allocated memory if size and alignment matches
/// See https://users.rust-lang.org/t/pattern-how-to-reuse-a-vec-str-across-loop-iterations/61657/5
/// See https://github.com/rust-lang/rfcs/pull/2802
#[allow(unused)]
pub(crate) fn recycle<A, B>(mut v: Vec<A>) -> Vec<B> {
v.clear();
v.into_iter().map(|_| unreachable!()).collect()
Expand Down

0 comments on commit fa38bbd

Please sign in to comment.