Skip to content

Commit ef2b321

Browse files
committed
[bindings] Allow write_rust_type to handle leading-colon paths
It just stubs out to `write_rust_path` in this case anyway, which handles leading-colons just fine, so no need to panic on them.
1 parent dfef21c commit ef2b321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
10611061
pub fn write_rust_type<W: std::io::Write>(&self, w: &mut W, generics: Option<&GenericTypes>, t: &syn::Type) {
10621062
match t {
10631063
syn::Type::Path(p) => {
1064-
if p.qself.is_some() || p.path.leading_colon.is_some() {
1064+
if p.qself.is_some() {
10651065
unimplemented!();
10661066
}
10671067
self.write_rust_path(w, generics, &p.path);

0 commit comments

Comments
 (0)