mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
[bindings] Handle ::-containing paths in generics
Specifically, this is required for some paths which use `Option<msgs::Message>`.
This commit is contained in:
parent
6b4c8e4690
commit
f7f7500da5
1 changed files with 1 additions and 5 deletions
|
@ -1946,11 +1946,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
|
||||||
if !self.write_c_path_intern(w, &$p_arg.path, generics, true, true, true) { return false; }
|
if !self.write_c_path_intern(w, &$p_arg.path, generics, true, true, true) { return false; }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if $p_arg.path.segments.len() == 1 {
|
write!(w, "{}", $p_arg.path.segments.last().unwrap().ident).unwrap();
|
||||||
write!(w, "{}", $p_arg.path.segments.iter().next().unwrap().ident).unwrap();
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else if self.is_known_container(&subtype, is_ref) || self.is_transparent_container(&subtype, is_ref) {
|
} else if self.is_known_container(&subtype, is_ref) || self.is_transparent_container(&subtype, is_ref) {
|
||||||
if !self.write_c_mangled_container_path_intern(w, Self::path_to_generic_args(&$p_arg.path), generics,
|
if !self.write_c_mangled_container_path_intern(w, Self::path_to_generic_args(&$p_arg.path), generics,
|
||||||
|
|
Loading…
Add table
Reference in a new issue