fix *const in some setters

This commit is contained in:
Matus Talcik 2018-10-26 15:49:12 +02:00
parent 70acea569d
commit deb83f4b2e
2 changed files with 1787 additions and 1790 deletions

File diff suppressed because it is too large Load diff

View file

@ -1411,7 +1411,7 @@ pub fn derive_setters(_struct: &vkxml::Struct) -> Option<Tokens> {
} }
} }
if param_ty_string.starts_with("*const ") && param_ty_string.ends_with("Info") { if param_ty_string.starts_with("*const ") {
let slice_param_ty_tokens = "&'a ".to_string() + &param_ty_string[7..]; let slice_param_ty_tokens = "&'a ".to_string() + &param_ty_string[7..];
let slice_param_ty_tokens = Term::intern(&slice_param_ty_tokens); let slice_param_ty_tokens = Term::intern(&slice_param_ty_tokens);
return Some(quote!{ return Some(quote!{