File: fix-unaligned-feature.patch

package info (click to toggle)
rust-capnp 0.14.11-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 628 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/private/layout_test.rs b/src/private/layout_test.rs
index 35cbf22..7a743c7 100644
--- a/src/private/layout_test.rs
+++ b/src/private/layout_test.rs
@@ -20,6 +20,7 @@
 // THE SOFTWARE.
 
 use crate::private::layout::PointerReader;
+use alloc::vec::Vec;
 
 fn test_at_alignments(words: &[crate::Word], verify: &dyn Fn(PointerReader)) {
     verify(PointerReader::get_root_unchecked(words.as_ptr() as *const u8));