aboutsummaryrefslogtreecommitdiff
path: root/gen/src/mod.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2020-09-24 10:46:14 -0400
committerDavid Tolnay <dtolnay@gmail.com>2020-09-24 11:38:22 -0400
commitf027756ba7f6494cde572d3573c999c47e0bdc93 (patch)
tree9e2172985625019744f91f5df249ff2aa9f3d6a1 /gen/src/mod.rs
parent13213b7a85cc1b5dcac0848bb664f34d463ac7e7 (diff)
downloadcxx-f027756ba7f6494cde572d3573c999c47e0bdc93.tar.gz
Handle multiple outputs from the same cxxbridge invocation
Diffstat (limited to 'gen/src/mod.rs')
-rw-r--r--gen/src/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen/src/mod.rs b/gen/src/mod.rs
index 9578fe86..85227152 100644
--- a/gen/src/mod.rs
+++ b/gen/src/mod.rs
@@ -50,6 +50,7 @@ pub struct Opt {
}
/// Results of code generation.
+#[derive(Default)]
pub struct GeneratedCode {
/// The bytes of a C++ header file.
pub header: Vec<u8>,