This commit is contained in:
vms 2021-04-12 22:21:58 +03:00
parent bac2d22bea
commit c5347cf1c1

View File

@ -40,13 +40,13 @@ impl ForeignModArgGlueCodeGenerator for ParsedType {
ty @ ParsedType::Boolean(_) => {
let deref_sign = maybe_deref(ty);
quote! { #deref_sign#arg as _ }
},
}
// this branch shouldn't be unite with booleans because otherwise
// conversions errors could be lost due to as _
ty => {
let deref_sign = maybe_deref(ty);
quote! { #deref_sign#arg }
},
}
}
}
}