Skip to content

Commit 61b4118

Browse files
authored
Merge pull request #106 from mhama/20250325-for-zenoh-c
fix handling of MaybeUninit
2 parents 272fdf6 + e12ecde commit 61b4118

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csbindgen/src/parser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ fn parse_type_path(t: &syn::TypePath) -> RustType {
704704
type_name: "Box".to_string(),
705705
type_kind: TypeKind::Pointer(PointerType::Box, Box::new(rust_type)),
706706
};
707+
} else if last_segment.ident == "MaybeUninit" {
708+
return rust_type;
707709
}
708710
}
709711
}

0 commit comments

Comments
 (0)