We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700eb26 commit 1dd9a40Copy full SHA for 1dd9a40
crates/gen/src/parser/method_signature.rs
@@ -480,7 +480,7 @@ impl MethodParam {
480
let kind = self.signature.kind.gen_name(gen);
481
482
if self.param.is_input() {
483
- if self.signature.kind.is_primitive() {
+ if self.signature.kind.is_blittable() {
484
quote! { #name }
485
} else {
486
quote! { &*(&#name as *const <#kind as ::windows::Abi>::Abi as *const <#kind as ::windows::Abi>::DefaultType) }
tests/implement/tests/com_chain.rs
@@ -21,8 +21,7 @@ impl Test {
21
Ok(())
22
}
23
24
- // TODO: should be able to declare BOOL without a reference.
25
- fn Save(&self, _: &Option<IStream>, _: &BOOL) -> Result<()> {
+ fn Save(&self, _: &Option<IStream>, _: BOOL) -> Result<()> {
26
27
28
0 commit comments