@@ -128,7 +128,7 @@ fn check_type_rust_vec(cx: &mut Check, ty: &Ty1) {
128128 Bool | Char | U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize | F32
129129 | F64 | RustString ,
130130 ) => return ,
131- Some ( CxxString ) => { }
131+ Some ( CxxString | Cvoid ) => { }
132132 }
133133 }
134134 Type :: Str ( _) => return ,
@@ -169,7 +169,7 @@ fn check_type_shared_ptr(cx: &mut Check, ptr: &Ty1) {
169169 Bool | U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize | F32 | F64
170170 | CxxString ,
171171 ) => return ,
172- Some ( Char | RustString ) => { }
172+ Some ( Char | RustString | Cvoid ) => { }
173173 }
174174 } else if let Type :: CxxVector ( _) = & ptr. inner {
175175 cx. error ( ptr, "std::shared_ptr<std::vector> is not supported yet" ) ;
@@ -192,7 +192,7 @@ fn check_type_weak_ptr(cx: &mut Check, ptr: &Ty1) {
192192 Bool | U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize | F32 | F64
193193 | CxxString ,
194194 ) => return ,
195- Some ( Char | RustString ) => { }
195+ Some ( Char | RustString | Cvoid ) => { }
196196 }
197197 } else if let Type :: CxxVector ( _) = & ptr. inner {
198198 cx. error ( ptr, "std::weak_ptr<std::vector> is not supported yet" ) ;
@@ -218,7 +218,7 @@ fn check_type_cxx_vector(cx: &mut Check, ptr: &Ty1) {
218218 U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize | F32 | F64 | CxxString ,
219219 ) => return ,
220220 Some ( Char ) => { /* todo */ }
221- Some ( Bool | RustString ) => { }
221+ Some ( Bool | RustString | Cvoid ) => { }
222222 }
223223 }
224224
0 commit comments