Skip to content

Commit

Permalink
generate_setters: Prevent name collision with std Result
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusgo committed Apr 23, 2024
1 parent 058f3d6 commit 8c7bb16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,10 @@ impl Parser {
quote! {}
};
let (ty, init) = match &m.ty[..] {
"XrResult" => (
quote! { sys::Result },
quote! { self.inner.#ident = value; },
),
"XrBool32" => (
quote! { bool },
quote! { self.inner.#ident = value.into(); },
Expand Down

0 comments on commit 8c7bb16

Please sign in to comment.