File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ fxhash = "0.2"
5151bitflags = " 2.4"
5252smallvec = { version = " 1.11" , features = [" union" ] }
5353arrayvec = " 0.7"
54- bytemuck = " 1.9"
54+ bytemuck = { version = " 1.9" , features = [ " extern_crate_alloc " ] }
5555bytemuck_derive = " 1.3"
5656numeric_literals = " 0.2"
5757rstar = " 0.11"
Original file line number Diff line number Diff 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) ]
1011pub ( crate ) fn recycle < A , B > ( mut v : Vec < A > ) -> Vec < B > {
1112 v. clear ( ) ;
1213 v. into_iter ( ) . map ( |_| unreachable ! ( ) ) . collect ( )
You can’t perform that action at this time.
0 commit comments