We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4540b80 commit 531d9b7Copy full SHA for 531d9b7
1 file changed
crates/viewer/re_renderer/src/allocator/cpu_write_gpu_read_belt.rs
@@ -134,9 +134,7 @@ where
134
// https://github.com/purpleprotocol/mimalloc_rust/issues/128
135
// Therefore, large alignments won't work with collect.
136
let pretend_mimalloc_aligns_correctly = false;
137
- if elements.len() > 1
138
- && (pretend_mimalloc_aligns_correctly || std::mem::align_of::<T>() <= 64)
139
- {
+ if std::mem::align_of::<T>() <= 64 || pretend_mimalloc_aligns_correctly {
140
let vec: Vec<T> = elements.collect();
141
142
#[allow(clippy::dbg_macro)]
0 commit comments