Skip to content

Commit c8870b8

Browse files
committed
Add missing dependencies of Error
1 parent c4ff07b commit c8870b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gen/src/write.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ fn write_include_cxxbridge(out: &mut OutFile, apis: &[Api], types: &Types) {
214214
Api::RustFunction(efn) if !out.header => {
215215
if efn.throws {
216216
out.include.exception = true;
217+
out.include.string = true;
218+
needs_rust_str = true;
217219
needs_rust_error = true;
218220
}
219221
for arg in &efn.args {

0 commit comments

Comments
 (0)