| commit | 32ee9d3676ed272138f8a9388567b0f17657f129 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue May 12 20:01:09 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue May 12 20:01:15 2020 -0700 |
| tree | f90e2183efabc7214532e826b8e16e81adb8fcfd | |
| parent | 6aa34e4240c586647a788da3429622801c320ea9 [diff] [blame] |
rust::Vec has a bitcopy constructor too
diff --git a/gen/src/write.rs b/gen/src/write.rs index d5eae90..12f2839 100644 --- a/gen/src/write.rs +++ b/gen/src/write.rs
@@ -244,7 +244,7 @@ writeln!(out, "// #include \"rust/cxx.h\""); } - if needs_rust_string { + if needs_rust_string || needs_rust_vec { out.next_section(); writeln!(out, "struct unsafe_bitcopy_t;"); }